summaryrefslogtreecommitdiffhomepage
path: root/ground.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-13 15:00:13 +0200
committerAki <nthirtyone@gmail.com>2016-05-13 15:00:13 +0200
commit0506e2dd9cb9641486bbfc7908c0399b26e1ce3c (patch)
tree1d673944ed31946959f4b08c9c412cc8f2df12d5 /ground.lua
parent7d4251e3a9c08b89d25ef724270752f36649f765 (diff)
downloadroflnauts-0506e2dd9cb9641486bbfc7908c0399b26e1ce3c.zip
roflnauts-0506e2dd9cb9641486bbfc7908c0399b26e1ce3c.tar.gz
roflnauts-0506e2dd9cb9641486bbfc7908c0399b26e1ce3c.tar.bz2
Basic camera added
Diffstat (limited to 'ground.lua')
-rw-r--r--ground.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/ground.lua b/ground.lua
index 9f695c8..23b4dcf 100644
--- a/ground.lua
+++ b/ground.lua
@@ -34,7 +34,7 @@ function Ground:draw (offset_x, offset_y, debug)
local debug = debug or false
-- sprite draw
love.graphics.setColor(255,255,255,255)
- love.graphics.draw(self.sprite, self.body:getX()-math.ceil(self.sprite:getWidth()/2), self.body:getY())
+ love.graphics.draw(self.sprite, self.body:getX()-math.ceil(self.sprite:getWidth()/2)+offset_x, self.body:getY()+offset_y)
-- debug draw
if debug then
love.graphics.setColor(220, 220, 220, 100)