Added game over screen

This commit is contained in:
2025-11-27 17:36:34 +03:00
parent 0e2d303298
commit 93b1bca915
11 changed files with 113 additions and 25 deletions
+7 -1
View File
@@ -2,10 +2,12 @@ extends Node
@onready var pause_screen : Control = $PauseScreen
@onready var game_over_screen : Control = $GameOverScreen
func _ready() -> void:
pause_screen.hide()
game_over_screen.hide()
func _input(event: InputEvent) -> void:
@@ -18,6 +20,10 @@ func _on_pause_screen_continue_game() -> void:
pause_screen.hide()
func _on_pause_screen_show_main_menu() -> void:
func _on_show_main_menu() -> void:
get_tree().paused = false
get_tree().change_scene_to_file("res://menu/title_screen.tscn")
func _on_passage_player_died() -> void:
game_over_screen.show()