summaryrefslogtreecommitdiffhomepage
path: root/main.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-12-20 06:02:05 +0100
committerAki <nthirtyone@gmail.com>2016-12-20 06:02:05 +0100
commit73bcd524906c51d43b22b3ea68c64b38f130bea6 (patch)
tree998fe4fd04f901e411e366f4acdf142afe302a88 /main.lua
parent941d0214a4a1b499190f4f3c6133b5e512d897fe (diff)
downloadroflnauts-73bcd524906c51d43b22b3ea68c64b38f130bea6.zip
roflnauts-73bcd524906c51d43b22b3ea68c64b38f130bea6.tar.gz
roflnauts-73bcd524906c51d43b22b3ea68c64b38f130bea6.tar.bz2
I have no idea why I have put everything in one commit
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 3e28d90..deff1a1 100644
--- a/main.lua
+++ b/main.lua
@@ -74,6 +74,9 @@ function love.draw()
love.graphics.print("Current FPS: "..tostring(love.timer.getFPS()), 10, 10+9*scale, 0, scale, scale)
end
end
+function love.quit()
+ Settings.save()
+end
-- Pass input to Controller
function love.gamepadaxis(joystick, axis, value) Controller.gamepadaxis(joystick, axis, value) end
function love.gamepadpressed(joystick, key) Controller.gamepadpressed(joystick, key) end