Add a delay before new wave spawns.
This commit is contained in:
parent
feb7541944
commit
485a2dc151
|
@ -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…
Reference in New Issue
Block a user