game loop and restarting complete
This commit is contained in:
parent
c4806fabd5
commit
82652730f2
4 changed files with 107 additions and 15 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue