Fourth Map
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user