Pause game for both paths

This commit is contained in:
2025-08-27 22:57:18 +02:00
parent 4ff651ff8f
commit e889d131f7
3 changed files with 19 additions and 9 deletions

View File

@ -40,7 +40,11 @@ var endwave = false
func _on_timer_timeout() -> void:
if pause <= 0:
if endwave:
if not get_node("Path2D").get_children():
var checkend = false
for i in paths:
if not i.get_children():
checkend = true
if checkend:
endwave = false
get_node("CanvasLayer/SidePanel").Update_waves(currentwave + 1) #updating waves
if currentwave >= 4: #!!!!! CHECKS FOR THE LAST WAVE IF NEW WAVES ARE ADDED CHANGE ACCORDINGLY!!!

View File

@ -506,9 +506,9 @@ point_count = 15
[sub_resource type="Curve2D" id="Curve2D_xx2jp"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 1152, 320, 0, 0, 0, 0, 960, 320, 0, 0, 0, 0, 64, 320, 0, 0, 0, 0, 32, 320, 0, 0, 0, 0, 32, 480, 0, 0, 0, 0, 1144, 480, 0, 0, 0, 0, 1152, 320)
"points": PackedVector2Array(0, 0, 0, 0, 1152, 320, 0, 0, 0, 0, 960, 320, 0, 0, 0, 0, 64, 320, 0, 0, 0, 0, 32, 320, 0, 0, 0, 0, 32, 480, 0, 0, 0, 0, 936, 480)
}
point_count = 7
point_count = 6
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rec5e"]
size = Vector2(864, 1)