GAME OVERgit statusgit statusgit status
This commit is contained in:
parent
0f679fe404
commit
5772e5f046
2 changed files with 39 additions and 7 deletions
|
@ -2,9 +2,13 @@ extends CanvasLayer
|
|||
|
||||
onready var retry_button = $Panel/Retry
|
||||
onready var exit_button = $Panel/Exit
|
||||
onready var score: Label = $"%Score"
|
||||
onready var shards: Label = $"%Shards"
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
score.text = score.text % Game.marathon_score
|
||||
shards.text = shards.text % (Game.marathon_shards + Game.shards)
|
||||
Fade.fade_in(0.4)
|
||||
get_tree().paused = true
|
||||
retry_button.grab_focus()
|
||||
|
@ -14,10 +18,10 @@ func _ready():
|
|||
func _on_Exit_button_down():
|
||||
Fade.fade_out(0.4)
|
||||
yield(Fade, "fade_finished")
|
||||
get_tree().paused = false
|
||||
SceneManager.current_scene = load("res://menus/level_select_scholar.tscn").instance()
|
||||
get_tree().quit()
|
||||
|
||||
|
||||
func _on_Retry_button_down():
|
||||
get_tree().paused = true
|
||||
Game.restart_level()
|
||||
Fade.fade_out(0.4)
|
||||
yield(Fade, "fade_finished")
|
||||
SceneManager.current_scene = load("res://menus/marathon_start.tscn").instance()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue