summaryrefslogtreecommitdiffhomepage
path: root/not
diff options
context:
space:
mode:
Diffstat (limited to 'not')
-rw-r--r--not/PhysicalBody.lua2
-rw-r--r--not/World.lua8
2 files changed, 6 insertions, 4 deletions
diff --git a/not/PhysicalBody.lua b/not/PhysicalBody.lua
index c9b7300..1b2e90d 100644
--- a/not/PhysicalBody.lua
+++ b/not/PhysicalBody.lua
@@ -78,7 +78,7 @@ function PhysicalBody:draw (offset_x, offset_y, scale, debug)
love.graphics.setColor(137, 0, 255, 40)
end
local camera = self.world.camera
- love.graphics.polygon("fill", camera:scalePoints(self.body:getWorldPoints(fixture:getShape():getPoints())))
+ love.graphics.polygon("fill", self.body:getWorldPoints(fixture:getShape():getPoints()))
end
end
end
diff --git a/not/World.lua b/not/World.lua
index b9e89d3..0a3ce30 100644
--- a/not/World.lua
+++ b/not/World.lua
@@ -285,12 +285,14 @@ function World:draw ()
if debug then
local center = self.map.center
- local ax, ay, bx, by = self.camera:getBoundariesScaled()
+ local ax, ay, bx, by = self.camera:getBoundaries()
+
+ love.graphics.setLineWidth(1 / getScale())
+ love.graphics.setLineStyle("rough")
self.camera:push()
+ self.camera:scale()
self.camera:translate()
- love.graphics.setLineWidth(1)
- love.graphics.setLineStyle("rough")
love.graphics.setColor(130,130,130)
love.graphics.line(ax,center.y,bx,center.y)