Quit game once nothing remains
This commit is contained in:
parent
38ecbee541
commit
ad5d60bfa0
|
@ -218,6 +218,10 @@ end
|
||||||
function love.update(dt)
|
function love.update(dt)
|
||||||
updateMissiles(dt)
|
updateMissiles(dt)
|
||||||
updateExplosions(dt)
|
updateExplosions(dt)
|
||||||
|
|
||||||
|
if #explosions == 0 and #missiles == 0 then
|
||||||
|
love.event.quit()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function movePaddle(screen_x)
|
function movePaddle(screen_x)
|
||||||
|
|
Loading…
Reference in New Issue