summaryrefslogtreecommitdiffhomepage
path: root/player.lua
diff options
context:
space:
mode:
Diffstat (limited to 'player.lua')
-rw-r--r--player.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/player.lua b/player.lua
index 4d6f7ec..958ea8a 100644
--- a/player.lua
+++ b/player.lua
@@ -192,7 +192,7 @@ function Player:draw (offset_x, offset_y, debug)
local debug = debug or false
-- sprite draw
love.graphics.setColor(255,255,255,255)
- love.graphics.draw(self.sprite, self.current[self.frame], self.body:getX(), self.body:getY(), self.rotate, self.facing, 1, 12, 15)
+ love.graphics.draw(self.sprite, self.current[self.frame], self.body:getX()+offset_x, self.body:getY()+offset_y, self.rotate, self.facing, 1, 12, 15)
-- debug draw
if debug then
love.graphics.setColor(50, 255, 50, 100)