First trap initialized!

This commit is contained in:
2025-03-13 19:50:05 +01:00
parent 491755209f
commit 183f575160
14 changed files with 498 additions and 22 deletions

View File

@ -10,6 +10,10 @@ const enemies = [FORKMAN, COBOLD, ORK]
var lives = 20
func _ready() -> void:
get_node("SidePanel").Update_Lives(lives)
func _on_timer_timeout() -> void:
spawnMonster()
@ -22,7 +26,7 @@ func spawnMonster():
func decrease_life(damage) -> void:
lives -= damage
print(lives)
get_node("SidePanel").Update_Lives(lives)
if lives == 0:
print("DEAD")