summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-22 20:10:47 +0200
committerAki <nthirtyone@gmail.com>2016-05-22 20:10:47 +0200
commitae1a37e96f5110286dfa9af05b66479c6b9707bc (patch)
treeec2e5eef96b353368ce07db8484c9f4f48067905
parent21f09f86852d7b7b033057cb1c86e06e74acb7d5 (diff)
downloadroflnauts-ae1a37e96f5110286dfa9af05b66479c6b9707bc.zip
roflnauts-ae1a37e96f5110286dfa9af05b66479c6b9707bc.tar.gz
roflnauts-ae1a37e96f5110286dfa9af05b66479c6b9707bc.tar.bz2
Axes
-rw-r--r--world.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/world.lua b/world.lua
index cb54b42..98d0c0b 100644
--- a/world.lua
+++ b/world.lua
@@ -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