diff options
author | Aki <nthirtyone@gmail.com> | 2016-06-14 12:14:21 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-06-14 12:14:21 +0200 |
commit | 4e9e6722b2924df271233d7db48aec2d8ba1fd0d (patch) | |
tree | 1ab5e926cae388b61aa549d3232742ffe28ae75d | |
parent | c830c31861388dda65d753a9248bfaad6b8fd530 (diff) | |
download | roflnauts-4e9e6722b2924df271233d7db48aec2d8ba1fd0d.zip roflnauts-4e9e6722b2924df271233d7db48aec2d8ba1fd0d.tar.gz roflnauts-4e9e6722b2924df271233d7db48aec2d8ba1fd0d.tar.bz2 |
Selector creation moved to menu.lua
-rw-r--r-- | main.lua | 4 | ||||
-rw-r--r-- | menu.lua | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -29,10 +29,6 @@ function love.load () -- Menu bijaczes m = Menu:new() - m:newSelector() - m:newSelector() - m:newSelector() - m:newSelector() -- Controllers Controllers = {} @@ -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 |