new input system, add pausing
All checks were successful
CI / build (push) Successful in 2m52s

This commit is contained in:
Ultrablob 2025-02-07 13:37:10 -05:00
parent 4a31db6411
commit 88c05bbd8c
21 changed files with 194 additions and 75 deletions

View file

@ -45,6 +45,8 @@ func spawn_loop():
func spawn_enemies(count: int, duration: float, enemy: WaveEnemy):
var delay = duration / count
for i in range(count):
if get_tree().paused:
await get_parent().unpaused
spawn(enemy)
await get_tree().create_timer(delay).timeout