diff options
author | Zoey Kitt <zoey.kitt@outlook.com> | 2024-11-17 15:35:22 -0600 |
---|---|---|
committer | Zoey Kitt <zoey.kitt@outlook.com> | 2024-11-17 15:35:22 -0600 |
commit | 3f61a10428c3a8f0f3f0a208ac0369430add6971 (patch) | |
tree | a7101b5f41d56f647b2c459abe1012f75ab2ac23 | |
parent | def01c3c3753826ab6da28996b8bff2c36e6fba8 (diff) |
Ad message
-rw-r--r-- | scenes/LegallyDistinctPaperclipAssistant/window.tscn | 53 | ||||
-rw-r--r-- | scenes/main.gd | 3 |
2 files changed, 54 insertions, 2 deletions
diff --git a/scenes/LegallyDistinctPaperclipAssistant/window.tscn b/scenes/LegallyDistinctPaperclipAssistant/window.tscn index 6cd3902..d8c988a 100644 --- a/scenes/LegallyDistinctPaperclipAssistant/window.tscn +++ b/scenes/LegallyDistinctPaperclipAssistant/window.tscn @@ -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="Script" path="res://scenes/LegallyDistinctPaperclipAssistant/paperclip.gd" id="1_mbnc6"] @@ -226,9 +226,60 @@ tracks/0/keys = { "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"] _data = { "RESET": SubResource("Animation_npqqu"), +"ad_appear": SubResource("Animation_xjkdx"), "intro": SubResource("Animation_4fk4l"), "intro2": SubResource("Animation_umwwq") } diff --git a/scenes/main.gd b/scenes/main.gd index 3e32256..7269b4a 100644 --- a/scenes/main.gd +++ b/scenes/main.gd @@ -18,7 +18,7 @@ func _process(delta: float) -> void: func _on_microgame_spawn_timer_timeout() -> void: # Spawn a microgame window var window_instance = null - if (randf() < 10.25): + if (randf() < -10.25): var window_scene = preload("res://scenes/microgames/microgame_window.tscn") 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(fishin_instance) else: + $Clippette/AnimationPlayer.play("ad_appear") var window_scene = preload("res://scenes/microgames/ad/ad_window.tscn") window_instance = window_scene.instantiate() |