From 20eb4aa0ecd165b727cbb5bb3f3a7aad6a49ebce Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 12 Sep 2017 01:53:03 +0200 Subject: Draw debugging utilities using scaled camera --- not/World.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'not/World.lua') 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) -- cgit v1.1