summaryrefslogtreecommitdiffhomepage
path: root/config/menustart.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-23 18:15:55 +0200
committerAki <nthirtyone@gmail.com>2016-08-23 18:15:55 +0200
commitd41d75e723cfd7d49456da1e27d98f0c806afaca (patch)
tree14ed9af01a0c0efad15f02309d6fb179bc0a2052 /config/menustart.lua
parent63d90193f50f5fec561f725d8bda1fcb7ad6c3b8 (diff)
downloadroflnauts-d41d75e723cfd7d49456da1e27d98f0c806afaca.zip
roflnauts-d41d75e723cfd7d49456da1e27d98f0c806afaca.tar.gz
roflnauts-d41d75e723cfd7d49456da1e27d98f0c806afaca.tar.bz2
2
Diffstat (limited to 'config/menustart.lua')
-rw-r--r--config/menustart.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/menustart.lua b/config/menustart.lua
index 2472df5..1830f0d 100644
--- a/config/menustart.lua
+++ b/config/menustart.lua
@@ -1,11 +1,14 @@
local menu = ...
local button = require "button"
+local selector = require "selector"
+
+local width, height = love.graphics.getWidth()/getRealScale(), love.graphics.getHeight()/getRealScale()
return {
button:new(menu)
:setText("Go back")
- :setPosition(10,40)
+ :setPosition(10,height-25)
:set("active", function (self)
self.parent:load("menumain")
end)