Gameover menu

This commit is contained in:
Felipe M 2021-05-23 14:00:04 +02:00
parent 175bd597c5
commit b26c4a4be0
Signed by: fmartingr
GPG key ID: 716BC147715E716F
7 changed files with 80 additions and 1 deletions

View file

@ -19,5 +19,6 @@ func _on_QuitButton_pressed():
get_tree().quit()
func _process(_delta):
if Input.is_action_just_pressed("pause"):
var PlayerIsAlive = get_tree().get_nodes_in_group("Player").size() > 0
if Input.is_action_just_pressed("pause") and PlayerIsAlive:
self.paused = !paused