diff options
author | Aki <nthirtyone@gmail.com> | 2016-05-15 22:22:04 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-05-15 22:22:04 +0200 |
commit | 22f19497805c0ee4f4e5cfb6606673a9983dc191 (patch) | |
tree | 617f5230aa96210768c4b802bc563fc570b39394 /world.lua | |
parent | 8a51c55cfd5c22ff035f320c9128d6ec49009bf2 (diff) | |
download | roflnauts-22f19497805c0ee4f4e5cfb6606673a9983dc191.zip roflnauts-22f19497805c0ee4f4e5cfb6606673a9983dc191.tar.gz roflnauts-22f19497805c0ee4f4e5cfb6606673a9983dc191.tar.bz2 |
Making it readable
Diffstat (limited to 'world.lua')
-rw-r--r-- | world.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |