From ae1a37e96f5110286dfa9af05b66479c6b9707bc Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 22 May 2016 20:10:47 +0200 Subject: Axes --- world.lua | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.1