summaryrefslogtreecommitdiffhomepage
path: root/main.lua
diff options
context:
space:
mode:
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)