summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-14 01:59:29 +0200
committerAki <nthirtyone@gmail.com>2016-08-14 01:59:29 +0200
commit47e355f0f3262fcba84c9f9ee0c759c47dcfd4f5 (patch)
tree30253758ccf03e5f180a66538d0e961c4a2553a6
parentf9f927c3516580781eb7bf20870eefa6dc4b2e3f (diff)
downloadroflnauts-47e355f0f3262fcba84c9f9ee0c759c47dcfd4f5.zip
roflnauts-47e355f0f3262fcba84c9f9ee0c759c47dcfd4f5.tar.gz
roflnauts-47e355f0f3262fcba84c9f9ee0c759c47dcfd4f5.tar.bz2
fixed sprite offset
-rw-r--r--player.lua2
1 files changed, 1 insertions, 1 deletions
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)