Game over animation (customizable per mode)

This commit is contained in:
Ishaan Bhardwaj
2021-01-14 21:51:47 -05:00
parent a33ca1af24
commit e20eb048c8
2 changed files with 18 additions and 7 deletions

View File

@@ -104,6 +104,12 @@ function GameScene:render()
love.graphics.setFont(font_3x5_3)
if self.paused then love.graphics.print("PAUSED!", 80, 100) end
if self.game.completed then
self.game:onGameComplete()
elseif self.game.game_over then
self.game:onGameOver()
end
end
function GameScene:onInputPress(e)