game loop and restarting complete

This commit is contained in:
Tabby 2025-05-17 16:24:38 +10:00
parent c4806fabd5
commit 82652730f2
4 changed files with 107 additions and 15 deletions

View file

@ -5,6 +5,7 @@ var realness : float = 0
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
GameManager.gaming.connect(appear)
GameManager.game_over.connect(vanish)
# Called every frame. 'delta' is the elapsed time since the previous frame.
@ -17,3 +18,6 @@ func _process(delta: float) -> void:
func appear():
become_real = true
func vanish():
hide()