diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-12 01:53:03 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-12 01:53:03 +0200 |
commit | 20eb4aa0ecd165b727cbb5bb3f3a7aad6a49ebce (patch) | |
tree | 90c9b2c1f3623fed7f92fce97d1c99c84ed2c356 /not/World.lua | |
parent | 44bc9aa6fa62c1b23d1e98de8729c72132a88abc (diff) | |
download | roflnauts-20eb4aa0ecd165b727cbb5bb3f3a7aad6a49ebce.zip roflnauts-20eb4aa0ecd165b727cbb5bb3f3a7aad6a49ebce.tar.gz roflnauts-20eb4aa0ecd165b727cbb5bb3f3a7aad6a49ebce.tar.bz2 |
Draw debugging utilities using scaled camera
Diffstat (limited to 'not/World.lua')
-rw-r--r-- | not/World.lua | 8 |
1 files changed, 5 insertions, 3 deletions
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) |