From d267483d31c93e6070badbc5f22ff300a9349d1a Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Sun, 17 Nov 2024 14:54:34 -0600 Subject: add losing sound effect --- scenes/main.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scenes/main.gd') diff --git a/scenes/main.gd b/scenes/main.gd index 496edcc..d128e3f 100644 --- a/scenes/main.gd +++ b/scenes/main.gd @@ -44,6 +44,7 @@ func _on_microgame_win(window: MicrogameWindow): func _on_microgame_lose(window: MicrogameWindow): print("noooooo") + $LosingSoundEffect.play() $"Score window (real)/Score window".net_worth.timesEquals(0.8) @@ -54,7 +55,7 @@ func _on_fishin_win() -> void: $Clippette.visible = true $Clippette.start_dialogue() $"Score window (real)".visible = true - $AudioStreamPlayer.play() + $Music.play() func _on_score_window_donezo() -> void: @@ -65,6 +66,8 @@ func _on_score_window_donezo() -> void: $"Stock ticker".queue_free() get_window().position = Vector2i(10000, 10000) + $Music.volume_db = 10 + var new_window = Window.new() new_window.size = Vector2i(1280, 720) new_window.initial_position = Window.WINDOW_INITIAL_POSITION_CENTER_SCREEN_WITH_MOUSE_FOCUS -- cgit v1.2.3