Quit game once nothing remains

This commit is contained in:
Juhani Krekelä 2023-06-02 17:23:44 +03:00
parent 38ecbee541
commit ad5d60bfa0
1 changed files with 4 additions and 0 deletions

View File

@ -218,6 +218,10 @@ end
function love.update(dt)
updateMissiles(dt)
updateExplosions(dt)
if #explosions == 0 and #missiles == 0 then
love.event.quit()
end
end
function movePaddle(screen_x)