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