diff options
Diffstat (limited to 'scenes/main.gd')
-rw-r--r-- | scenes/main.gd | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/scenes/main.gd b/scenes/main.gd index 7ab90d5..c249270 100644 --- a/scenes/main.gd +++ b/scenes/main.gd @@ -38,8 +38,27 @@ func _on_microgame_win(window: MicrogameWindow): func _on_fishin_win() -> void: - $Fishin.visible = false + $Fishin.queue_free() $"Stock ticker".start() $"Microgame spawn timer".start() $Clippette.visible = true $"Score window (real)".visible = true + + +func _on_score_window_donezo() -> void: + for child in get_children(): + if child is Window: + child.queue_free() + $"Microgame spawn timer".stop() + $"Stock ticker".queue_free() + get_window().position = Vector2i(10000, 10000) + + var new_window = Window.new() + new_window.size = Vector2i(1280, 720) + new_window.initial_position = Window.WINDOW_INITIAL_POSITION_CENTER_SCREEN_WITH_MOUSE_FOCUS + new_window.unresizable = true + new_window.borderless = true + var gameover_scene = preload("res://scenes/gameover.tscn") + var gameover_scene_instance = gameover_scene.instantiate() + new_window.add_child(gameover_scene_instance) + add_child(new_window) |