From 47e355f0f3262fcba84c9f9ee0c759c47dcfd4f5 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 14 Aug 2016 01:59:29 +0200 Subject: fixed sprite offset --- player.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player.lua b/player.lua index 324f3ef..077780c 100644 --- a/player.lua +++ b/player.lua @@ -304,7 +304,7 @@ function Player:draw (offset_x, offset_y, scale, debug) local draw_y = (math.floor(y) + offset_y) * scale -- sprite draw love.graphics.setColor(255,255,255,255) - love.graphics.draw(self.sprite, self.current[self.frame], draw_x, draw_y, self.rotate, self.facing*scale, 1*scale, 12, 15) + love.graphics.draw(self.sprite, self.current[self.frame], draw_x, draw_y, self.rotate, self.facing*scale, 1*scale, 12, 14) -- debug draw if debug then love.graphics.setColor(137, 255, 0, 140) -- cgit v1.1