begin work on game over screen

This commit is contained in:
pennyrigate 2023-10-03 04:08:55 -04:00
parent 01cca79c79
commit 12ea0b0b72
7 changed files with 160 additions and 15 deletions

18
menus/game_over.gd Normal file
View file

@ -0,0 +1,18 @@
extends Node
onready var retry_button = $Panel/Retry
onready var exit_button = $Panel/Exit
# Called when the node enters the scene tree for the first time.
func _ready():
get_tree().paused = true
retry_button.grab_focus()
func _on_Exit_button_down():
get_tree().paused = false
SceneManager.current_scene = load("res://menus/level_select_scholar.tscn").instance()
func _on_Retry_button_down():
get_tree().paused = true
Game.restart_level()