From 4e9e6722b2924df271233d7db48aec2d8ba1fd0d Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 14 Jun 2016 12:14:21 +0200 Subject: Selector creation moved to menu.lua --- main.lua | 4 ---- menu.lua | 4 ++++ 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 -- cgit v1.1