From a8c3aba91e994c29b224279d401691ae39412db1 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 22 May 2016 22:20:00 +0200 Subject: Emo request --- ground.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.1