Fourth Map

This commit is contained in:
2025-09-12 15:46:49 +02:00
parent 2f9b0623f4
commit 6475051908
8 changed files with 2079 additions and 9 deletions

View File

@ -17,8 +17,6 @@ func _ready() -> void:
if i.name.contains("Path2D"):
paths.append(i)
waves = get_node("Setup").waves
print(waves)
print(paths)
#the meaning of the columns inside my wave generation matris:
# Number of enemies need to be spawned, chance of spawn an enemy, chance of forkman, chance of gobline, chance of ork
@ -33,9 +31,10 @@ func _on_timer_timeout() -> void:
var checkend = false
for i in paths:
if i.get_children():
break
break
checkend = true
currentwave += 1
break
if checkend:
endwave = false
get_node("CanvasLayer/SidePanel").Update_waves(currentwave + 1) #updating waves