diff options
author | Aki <nthirtyone@gmail.com> | 2016-09-30 16:35:05 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-09-30 16:35:05 +0200 |
commit | 92c040a9c0104623b19f8f5d6590a260190b4492 (patch) | |
tree | 0d40de8412a38ca5cca39ef6f0a4f7fcbb811142 /main.lua | |
parent | 01304063655a31e102f312f6293e7aa4c7582d3f (diff) | |
download | roflnauts-92c040a9c0104623b19f8f5d6590a260190b4492.zip roflnauts-92c040a9c0104623b19f8f5d6590a260190b4492.tar.gz roflnauts-92c040a9c0104623b19f8f5d6590a260190b4492.tar.bz2 |
Added Settings module scrap
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -39,6 +39,7 @@ require "camera" require "menu" require "controller" require "music" +require "settings" -- Temporary debug debug = false @@ -53,8 +54,9 @@ function love.load() Bold = love.graphics.newImageFont("assets/font-big.png", " 0123456789AEFILNORSTUW", -2) Font:setLineHeight(9/16) love.graphics.setFont(Font) - -- Controller + -- Modules Controller.load() + Settings.load() -- Scene Scene = Menu:new() end @@ -84,7 +86,7 @@ function Controller.controlpressed(set, action, key) -- pass to current Scene Scene:controlpressed(set, action, key) -- globals - if key == "escape" or key == "f1" then + if key == "escape" then love.event.quit() end if key == "f5" then |