diff options
author | Aki <nthirtyone@gmail.com> | 2016-05-22 20:10:47 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-05-22 20:10:47 +0200 |
commit | ae1a37e96f5110286dfa9af05b66479c6b9707bc (patch) | |
tree | ec2e5eef96b353368ce07db8484c9f4f48067905 | |
parent | 21f09f86852d7b7b033057cb1c86e06e74acb7d5 (diff) | |
download | roflnauts-ae1a37e96f5110286dfa9af05b66479c6b9707bc.zip roflnauts-ae1a37e96f5110286dfa9af05b66479c6b9707bc.tar.gz roflnauts-ae1a37e96f5110286dfa9af05b66479c6b9707bc.tar.bz2 |
Axes
-rw-r--r-- | world.lua | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -219,6 +219,15 @@ function World:draw() local x1, y1 = c:translatePosition(cx, self.map.center_y) local x2, y2 = c:translatePosition(cx+w, self.map.center_y) love.graphics.line(x1,y1,x2,y2) + love.graphics.setColor(200,200,200) + love.graphics.setLineStyle("rough") + local cx, cy = c:getPositionScaled() + local x1, y1 = c:translatePosition(0, cy) + local x2, y2 = c:translatePosition(0, cy+h) + love.graphics.line(x1,y1,x2,y2) + local x1, y1 = c:translatePosition(cx, 0) + local x2, y2 = c:translatePosition(cx+w, 0) + love.graphics.line(x1,y1,x2,y2) end -- Draw HUDs |