Ad message

This commit is contained in:
Zoey Kitt 2024-11-17 15:35:22 -06:00
parent def01c3c37
commit 3f61a10428
2 changed files with 54 additions and 2 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=11 format=3 uid="uid://bbg7lnak6kup7"] [gd_scene load_steps=12 format=3 uid="uid://bbg7lnak6kup7"]
[ext_resource type="Texture2D" uid="uid://b1t8f4nb5aahv" path="res://scenes/LegallyDistinctPaperclipAssistant/LDPA_angy.png" id="1_bqw21"] [ext_resource type="Texture2D" uid="uid://b1t8f4nb5aahv" path="res://scenes/LegallyDistinctPaperclipAssistant/LDPA_angy.png" id="1_bqw21"]
[ext_resource type="Script" path="res://scenes/LegallyDistinctPaperclipAssistant/paperclip.gd" id="1_mbnc6"] [ext_resource type="Script" path="res://scenes/LegallyDistinctPaperclipAssistant/paperclip.gd" id="1_mbnc6"]
@ -226,9 +226,60 @@ tracks/0/keys = {
"values": [] "values": []
} }
[sub_resource type="Animation" id="Animation_xjkdx"]
resource_name = "ad_appear"
length = 3.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Label:visible_ratio")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 3),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 1.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:current_text")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": ["Our business is funded
by advertisements.
Yeah, investing in
fish doesn't really
bring in the big
bucks either."]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Label:text")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": ["Our business is funded
by advertisements.
Yeah, investing in
fish doesn't really
bring in the big
bucks either."]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_qflce"] [sub_resource type="AnimationLibrary" id="AnimationLibrary_qflce"]
_data = { _data = {
"RESET": SubResource("Animation_npqqu"), "RESET": SubResource("Animation_npqqu"),
"ad_appear": SubResource("Animation_xjkdx"),
"intro": SubResource("Animation_4fk4l"), "intro": SubResource("Animation_4fk4l"),
"intro2": SubResource("Animation_umwwq") "intro2": SubResource("Animation_umwwq")
} }

View file

@ -18,7 +18,7 @@ func _process(delta: float) -> void:
func _on_microgame_spawn_timer_timeout() -> void: func _on_microgame_spawn_timer_timeout() -> void:
# Spawn a microgame window # Spawn a microgame window
var window_instance = null var window_instance = null
if (randf() < 10.25): if (randf() < -10.25):
var window_scene = preload("res://scenes/microgames/microgame_window.tscn") var window_scene = preload("res://scenes/microgames/microgame_window.tscn")
window_instance = window_scene.instantiate() window_instance = window_scene.instantiate()
@ -38,6 +38,7 @@ func _on_microgame_spawn_timer_timeout() -> void:
window_instance.add_child(stonk_instance) window_instance.add_child(stonk_instance)
window_instance.add_child(fishin_instance) window_instance.add_child(fishin_instance)
else: else:
$Clippette/AnimationPlayer.play("ad_appear")
var window_scene = preload("res://scenes/microgames/ad/ad_window.tscn") var window_scene = preload("res://scenes/microgames/ad/ad_window.tscn")
window_instance = window_scene.instantiate() window_instance = window_scene.instantiate()