diff options
author | Aki <nthirtyone@gmail.com> | 2016-05-13 15:00:13 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-05-13 15:00:13 +0200 |
commit | 0506e2dd9cb9641486bbfc7908c0399b26e1ce3c (patch) | |
tree | 1d673944ed31946959f4b08c9c412cc8f2df12d5 /ground.lua | |
parent | 7d4251e3a9c08b89d25ef724270752f36649f765 (diff) | |
download | roflnauts-0506e2dd9cb9641486bbfc7908c0399b26e1ce3c.zip roflnauts-0506e2dd9cb9641486bbfc7908c0399b26e1ce3c.tar.gz roflnauts-0506e2dd9cb9641486bbfc7908c0399b26e1ce3c.tar.bz2 |
Basic camera added
Diffstat (limited to 'ground.lua')
-rw-r--r-- | ground.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |