feat: add default gamesystem uses inside mainmenu
This commit is contained in:
parent
df274f9dd0
commit
88526282ea
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,8 @@ end
|
||||||
function MainMenu:draw()
|
function MainMenu:draw()
|
||||||
love.graphics.setColor(.3, .1, .4, 1)
|
love.graphics.setColor(.3, .1, .4, 1)
|
||||||
love.graphics.rectangle("fill", 0, 0, 424, 240)
|
love.graphics.rectangle("fill", 0, 0, 424, 240)
|
||||||
|
utils.graphics.resetColor()
|
||||||
|
love.graphics.print(math.floor(game.playtime), 8, 8)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- WIDGETS
|
-- WIDGETS
|
||||||
|
@ -142,6 +144,7 @@ function ExitWidget:new(scene, menu)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ExitWidget:action()
|
function ExitWidget:action()
|
||||||
|
game:write()
|
||||||
love.event.quit()
|
love.event.quit()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue