This commit is contained in:
MarcEricMartel
2022-10-12 21:20:58 -04:00
parent 0a883a031d
commit ea5f6fb3e8
13 changed files with 68 additions and 42 deletions

View File

@@ -10,14 +10,15 @@ onready var NEXTSCENE = "res://Levels/Level09.tscn"
onready var WinMess = $Messages/Win
onready var EndTimer = $End
onready var HUD = $"Player/HUD/MenuLayer/Start"
# Called when the node enters the scene tree for the first time.
onready var balls = $"Player/HUD/PlayerLayer/ActualHUD/Balls"
func _ready():
pass # Replace with function body.
balls.text = String(enemycount)
func _on_Enemy_dying():
enemycount -= 1
balls.text = String(enemycount)
if enemycount == 0:
WinMess.show()
EndTimer.start()