From 21f09f86852d7b7b033057cb1c86e06e74acb7d5 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 22 May 2016 20:05:01 +0200 Subject: Debug draw upgrade --- player.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player.lua') 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 -- cgit v1.1