From 22f19497805c0ee4f4e5cfb6606673a9983dc191 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 15 May 2016 22:22:04 +0200 Subject: Making it readable --- world.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'world.lua') diff --git a/world.lua b/world.lua index 963ae44..098e268 100644 --- a/world.lua +++ b/world.lua @@ -24,12 +24,12 @@ function World:new() o.world = love.physics.newWorld(0, 9.81*64, true) o.world:setCallbacks(o.beginContact, o.endContact) -- Empty tables for objects - local c = {} - o.Clouds = c local n = {} o.Nauts = n local p = {} o.Platforms = {} + local c = {} + o.Clouds = c -- Create camera o.camera = Camera:new() return o @@ -90,12 +90,12 @@ function World:draw() -- Draw ground for _,platform in pairs(self.Platforms) do - platform:draw(offset_x, offset_y, scale, false) + platform:draw(offset_x, offset_y, scale, debug) end -- Draw player for _,naut in pairs(self.Nauts) do - naut:draw(offset_x, offset_y, scale, false) + naut:draw(offset_x, offset_y, scale, debug) end end -- cgit v1.1