added level restart function

This commit is contained in:
pennyrigate 2023-01-16 03:19:06 -05:00
parent 18f5b28295
commit 3247a67e96
12 changed files with 206 additions and 40 deletions

View file

@ -0,0 +1,21 @@
extends Node2D
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
get_tree().paused = true
$Body/Resume.grab_focus()
func _on_Resume_pressed():
get_tree().paused = false
queue_free()
func _on_Restart_pressed():
Game