29 lines
573 B
GDScript3
29 lines
573 B
GDScript3
extends CanvasLayer
|
|
|
|
|
|
# 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():
|
|
pass # Replace with function body.
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
#func _process(delta):
|
|
# pass
|
|
|
|
func _on_QuitButton_pressed():
|
|
get_tree().notification(MainLoop.NOTIFICATION_WM_QUIT_REQUEST)
|
|
|
|
signal new_game
|
|
|
|
func _on_NewGameButton_pressed():
|
|
hide()
|
|
emit_signal("new_game")
|
|
|
|
|
|
func _on_Player_health_updated():
|
|
pass # Replace with function body.
|