summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-22 22:20:00 +0200
committerAki <nthirtyone@gmail.com>2016-05-22 22:20:00 +0200
commita8c3aba91e994c29b224279d401691ae39412db1 (patch)
tree6dd3a0ebeed4f2d8ca365745d5851efdd8dfb610
parent97286c4456282048085f1a6641e01715a4f7fc5f (diff)
downloadroflnauts-a8c3aba91e994c29b224279d401691ae39412db1.zip
roflnauts-a8c3aba91e994c29b224279d401691ae39412db1.tar.gz
roflnauts-a8c3aba91e994c29b224279d401691ae39412db1.tar.bz2
Emo request
-rw-r--r--ground.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/ground.lua b/ground.lua
index d9d6bde..fa84506 100644
--- a/ground.lua
+++ b/ground.lua
@@ -37,7 +37,7 @@ function Ground:draw (offset_x, offset_y, scale, 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)+offset_x)*scale, (self.body:getY()+offset_y)*scale, 0, scale, scale)
+ love.graphics.draw(self.sprite, (self.body:getX()+offset_x)*scale, (self.body:getY()+offset_y)*scale, 0, scale, scale)
-- debug draw
if debug then
love.graphics.setColor(220, 220, 220, 100)