From 88526282ea4f1c104714482c3172049f516de864 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 24 Jul 2019 10:44:03 +0200 Subject: [PATCH] feat: add default gamesystem uses inside mainmenu --- examples/mainmenu/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/mainmenu/init.lua b/examples/mainmenu/init.lua index 90db6ca..d1340fd 100644 --- a/examples/mainmenu/init.lua +++ b/examples/mainmenu/init.lua @@ -85,6 +85,8 @@ end function MainMenu:draw() love.graphics.setColor(.3, .1, .4, 1) love.graphics.rectangle("fill", 0, 0, 424, 240) + utils.graphics.resetColor() + love.graphics.print(math.floor(game.playtime), 8, 8) end -- WIDGETS @@ -142,6 +144,7 @@ function ExitWidget:new(scene, menu) end function ExitWidget:action() + game:write() love.event.quit() end