From: Clifton James Palmer Date: Sun, 9 Dec 2018 01:12:23 +0000 (-0600) Subject: Enhanced the grid layout X-Git-Url: http://git.purplebirdman.com/lightcycles-love.git/commitdiff_plain/47b0642c7be92286fe49ef20cbc5018698c8ce0c Enhanced the grid layout --- diff --git a/scene.lua b/scene.lua index 213d34a..bd38c41 100644 --- a/scene.lua +++ b/scene.lua @@ -25,12 +25,21 @@ function scene:drawGrid() love.graphics.setBackgroundColor(self.grid.bgcolor) love.graphics.setColor(self.grid.linecolor) + love.graphics.setLineWidth(2) for x=0,self.width,self.grid.delta do love.graphics.line(x, 0, x, self.height) end for y=0,self.height,self.grid.delta do love.graphics.line(0, y, self.width, y) end + + love.graphics.setLineWidth(0.5) + for x=0,self.width,self.grid.delta/2 do + love.graphics.line(x, 0, x, self.height) + end + for y=0,self.height,self.grid.delta/2 do + love.graphics.line(0, y, self.width, y) + end end function scene:drawPlayers()