diff options
-rw-r--r-- | scenes/LegallyDistinctPaperclipAssistant/window.tscn | 144 | ||||
-rw-r--r-- | scenes/gameover.tscn | 2 | ||||
-rw-r--r-- | scenes/main.gd | 7 | ||||
-rw-r--r-- | scenes/title.tscn | 2 |
4 files changed, 150 insertions, 5 deletions
diff --git a/scenes/LegallyDistinctPaperclipAssistant/window.tscn b/scenes/LegallyDistinctPaperclipAssistant/window.tscn index 6cd3902..64ff49e 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=14 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"] @@ -83,6 +83,103 @@ tracks/4/keys = { "values": ["And don't go bankrupt."] } +[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="Animation" id="Animation_squrw"] +resource_name = "ad_click" +length = 3.0 +step = 1.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, 2), +"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("Label:text") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": ["We pay the ad agency +per ad spot, per click, +and per second per ad +spot."] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath(".:current_text") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0, 3), +"transitions": PackedFloat32Array(1, 1), +"update": 1, +"values": ["We pay the ad agency +per ad spot, per click, +and per second per ad +spot.", ""] +} + [sub_resource type="Animation" id="Animation_4fk4l"] resource_name = "intro" length = 20.0 @@ -226,11 +323,54 @@ tracks/0/keys = { "values": [] } +[sub_resource type="Animation" id="Animation_lw71a"] +resource_name = "templaaate" +step = 1.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), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [0.0] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("Label:text") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(), +"transitions": PackedFloat32Array(), +"update": 1, +"values": [] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath(".:current_text") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(), +"transitions": PackedFloat32Array(), +"update": 1, +"values": [] +} + [sub_resource type="AnimationLibrary" id="AnimationLibrary_qflce"] _data = { "RESET": SubResource("Animation_npqqu"), +"ad_appear": SubResource("Animation_xjkdx"), +"ad_click": SubResource("Animation_squrw"), "intro": SubResource("Animation_4fk4l"), -"intro2": SubResource("Animation_umwwq") +"intro2": SubResource("Animation_umwwq"), +"templaaate": SubResource("Animation_lw71a") } [node name="Window" type="Window"] diff --git a/scenes/gameover.tscn b/scenes/gameover.tscn index 7759edd..1732111 100644 --- a/scenes/gameover.tscn +++ b/scenes/gameover.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=46 format=3 uid="uid://be813saajvxxs"] +[gd_scene load_steps=46 format=3 uid="uid://dv67unre56t5b"] [ext_resource type="Texture2D" uid="uid://dobiydav6k32e" path="res://UI/GameOverScreen.png" id="1_60m3n"] [ext_resource type="Script" path="res://scenes/gameover.gd" id="1_clwwq"] diff --git a/scenes/main.gd b/scenes/main.gd index e8d4ea9..b835af4 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() < 0.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() @@ -66,6 +67,10 @@ func _on_microgame_win(window: MicrogameWindow): func _on_microgame_lose(window: MicrogameWindow): print("noooooo") $LosingSoundEffect.play() + if window.get_children()[0] is Fishin: + pass + else: + $Clippette/AnimationPlayer.play("ad_click") $"Score window (real)/Score window".lose_money($"Score window (real)/Score window".net_worth.times(0.2)) diff --git a/scenes/title.tscn b/scenes/title.tscn index efb165e..f2c950a 100644 --- a/scenes/title.tscn +++ b/scenes/title.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=47 format=3 uid="uid://uqljciqhbulx"] +[gd_scene load_steps=47 format=3 uid="uid://bhcfvjkkpmtr4"] [ext_resource type="Script" path="res://scenes/title.gd" id="1_q3sds"] [ext_resource type="Texture2D" uid="uid://bmgnk2m8rj1n1" path="res://UI/StartScreen.png" id="1_xa24a"] |