hexgrid: moved grid to start fromcenter
This commit is contained in:
parent
259a96370b
commit
11e2f046c3
@ -41,8 +41,8 @@ function createGrid()
|
|||||||
maxX = 10
|
maxX = 10
|
||||||
maxY = 1
|
maxY = 1
|
||||||
|
|
||||||
centerX = 50
|
centerX= love.graphics.getWidth() / 2
|
||||||
centerY = 50
|
centerY = love.graphics.getHeight() / 2
|
||||||
for y=1, maxY do
|
for y=1, maxY do
|
||||||
for x=1, maxX do
|
for x=1, maxX do
|
||||||
if x == 1 then
|
if x == 1 then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user