summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)