summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-06-14 12:14:21 +0200
committerAki <nthirtyone@gmail.com>2016-06-14 12:14:21 +0200
commit4e9e6722b2924df271233d7db48aec2d8ba1fd0d (patch)
tree1ab5e926cae388b61aa549d3232742ffe28ae75d
parentc830c31861388dda65d753a9248bfaad6b8fd530 (diff)
downloadroflnauts-4e9e6722b2924df271233d7db48aec2d8ba1fd0d.zip
roflnauts-4e9e6722b2924df271233d7db48aec2d8ba1fd0d.tar.gz
roflnauts-4e9e6722b2924df271233d7db48aec2d8ba1fd0d.tar.bz2
Selector creation moved to menu.lua
-rw-r--r--main.lua4
-rw-r--r--menu.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/main.lua b/main.lua
index 2fbec32..bb0bc67 100644
--- a/main.lua
+++ b/main.lua
@@ -29,10 +29,6 @@ function love.load ()
-- Menu bijaczes
m = Menu:new()
- m:newSelector()
- m:newSelector()
- m:newSelector()
- m:newSelector()
-- Controllers
Controllers = {}
diff --git a/menu.lua b/menu.lua
index f704a1c..ac4d85e 100644
--- a/menu.lua
+++ b/menu.lua
@@ -30,6 +30,10 @@ function Menu:new ()
o.selectors = {}
o.selected = {}
o.portrait_sprite = love.graphics.newImage("assets/portraits.png")
+ -- selectors
+ for i=0,3 do
+ o:newSelector()
+ end
return o
end