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 e00fbce..76d694f 100644
--- a/player.lua
+++ b/player.lua
@@ -266,7 +266,7 @@ function Player:draw (offset_x, offset_y, scale, debug)
-- debug draw
if debug then
love.graphics.setColor(50, 255, 50, 100)
- love.graphics.polygon("fill", self.body:getWorldPoints(self.shape:getPoints()))
+ love.graphics.polygon("fill", self.world.camera:translatePoints(self.body:getWorldPoints(self.shape:getPoints())))
love.graphics.setColor(255,255,255,255)
end
end