From 728c8aa62add0310119017615c7e973e35daf146 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 1 Jun 2016 22:25:57 +0200 Subject: Making master playable --- main.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/main.lua b/main.lua index 1163516..da4c378 100644 --- a/main.lua +++ b/main.lua @@ -35,13 +35,13 @@ function love.load () m:assignController(Controllers[2]) -- ZU WARUDO! - -- w = World:new("default", {"leon", Controllers[1]}, {"lonestar", Controllers[2]}) + w = World:new("default", {"leon", Controllers[1]}, {"lonestar", Controllers[2]}) end -- Update function love.update (dt) - -- w:update(dt) - m:update(dt) + w:update(dt) + -- m:update(dt) end -- KeyPressed @@ -59,8 +59,10 @@ function love.keypressed (key) end if key == "f5" and debug then local new = World:new("default", {"leon", Controllers[1]}, {"lonestar", Controllers[2]}) - m = nil - m = new + -- m = nil + -- m = new + w = nil + w = new end if key == "f6" then m = m:startGame() @@ -77,8 +79,8 @@ end -- Draw function love.draw () - -- w:draw() - m:draw() + w:draw() + -- m:draw() if debug then love.graphics.print("Current FPS: "..tostring(love.timer.getFPS( )), 10, 10) end -- cgit v1.1