Add a delay before new wave spawns.
This commit is contained in:
parent
feb7541944
commit
485a2dc151
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ function playdate.update()
|
||||||
if currentWave:update() then
|
if currentWave:update() then
|
||||||
-- fight forever lol
|
-- fight forever lol
|
||||||
currentWave = newWave()
|
currentWave = newWave()
|
||||||
currentWave:add()
|
playdate.timer.performAfterDelay(1000, Wave.add, currentWave)
|
||||||
end
|
end
|
||||||
playdate.timer.updateTimers()
|
playdate.timer.updateTimers()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue