summaryrefslogtreecommitdiff
path: root/scenes/main.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/main.gd')
-rw-r--r--scenes/main.gd11
1 files changed, 11 insertions, 0 deletions
diff --git a/scenes/main.gd b/scenes/main.gd
index bfee6d1..496edcc 100644
--- a/scenes/main.gd
+++ b/scenes/main.gd
@@ -31,10 +31,20 @@ func _on_microgame_spawn_timer_timeout() -> void:
# Connect signals
window_instance.win.connect(_on_microgame_win)
+ window_instance.lose.connect(_on_microgame_lose)
+ window_instance.ad_open.connect(_on_ad_open)
+ $"Score window (real)/Score window".net_worth.timesEquals(0.9)
+
+func _on_ad_open(window: MicrogameWindow):
+ $"Score window (real)/Score window".net_worth.timesEquals(0.95)
func _on_microgame_win(window: MicrogameWindow):
print("yay")
+
+func _on_microgame_lose(window: MicrogameWindow):
+ print("noooooo")
+ $"Score window (real)/Score window".net_worth.timesEquals(0.8)
func _on_fishin_win() -> void:
@@ -44,6 +54,7 @@ func _on_fishin_win() -> void:
$Clippette.visible = true
$Clippette.start_dialogue()
$"Score window (real)".visible = true
+ $AudioStreamPlayer.play()
func _on_score_window_donezo() -> void: