From 11e2f046c3cce619fad868761e57fd6a90f261dd Mon Sep 17 00:00:00 2001 From: Logen Kain Date: Sun, 27 Nov 2016 19:43:46 -0700 Subject: [PATCH] hexgrid: moved grid to start fromcenter --- love/hexgrid/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/love/hexgrid/main.lua b/love/hexgrid/main.lua index 8d952aa..62f2f6d 100644 --- a/love/hexgrid/main.lua +++ b/love/hexgrid/main.lua @@ -41,8 +41,8 @@ function createGrid() maxX = 10 maxY = 1 - centerX = 50 - centerY = 50 + centerX= love.graphics.getWidth() / 2 + centerY = love.graphics.getHeight() / 2 for y=1, maxY do for x=1, maxX do if x == 1 then