From 52609cc49d88f5b0d8610b5f6b792f0f423dc735 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 1 Jun 2016 22:24:38 +0200 Subject: Menu menu menu -- still not complete --- menu.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'menu.lua') diff --git a/menu.lua b/menu.lua index 2e15881..6f0681c 100644 --- a/menu.lua +++ b/menu.lua @@ -69,6 +69,9 @@ function Menu:update(dt) else self.countdown = 3 end + if state and self.countdown < 0 then + self.__index = self:startGame() + end end -- @@ -105,4 +108,14 @@ end -- It just must be here function Menu:controllerReleased(control, controller) +end + +-- WARUDO +function Menu:startGame() + local nauts = {} + for _,selector in pairs(self.selected) do + table.insert(nauts, {selector:getSelectionName(), selector:getController()}) + end + local world = World:new("default", nauts) + return world end \ No newline at end of file -- cgit v1.1