summaryrefslogtreecommitdiffhomepage
path: root/main.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-14 01:20:03 +0200
committerAki <nthirtyone@gmail.com>2016-05-14 01:20:03 +0200
commit39a0d239e986919c95b49a722c1b515b301c567d (patch)
treedd4a783f8678f1d203615c3a89e70b5f5a1db5d0 /main.lua
parent431bcc0828fcbb296b5e97901d6583a074967a8f (diff)
downloadroflnauts-39a0d239e986919c95b49a722c1b515b301c567d.zip
roflnauts-39a0d239e986919c95b49a722c1b515b301c567d.tar.gz
roflnauts-39a0d239e986919c95b49a722c1b515b301c567d.tar.bz2
Preparations for clouds, going to sleep.
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index bee3ef3..01c46bb 100644
--- a/main.lua
+++ b/main.lua
@@ -82,8 +82,10 @@ function love.draw ()
love.graphics.setColor(179, 82, 80, 255)
love.graphics.rectangle("fill", 0, love.graphics.getHeight()*0.8, love.graphics.getWidth(), love.graphics.getHeight()*0.2)
+ -- Get camera (like this, for now ;_; pass camera object to draw function?)
local offset_x, offset_y = camera:getOffsets()
local scale = camera.scale
+
-- Draw ground
for k,platform in pairs(Platforms) do
platform:draw(offset_x, offset_y, scale, debug)