added level restart function
This commit is contained in:
parent
18f5b28295
commit
3247a67e96
12 changed files with 206 additions and 40 deletions
21
objects/hud/pause_screen.gd
Normal file
21
objects/hud/pause_screen.gd
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue