Hi Servant of the Lord ;)
Well spotted floor in my plan I see.
Had me worried for a second.
Because I will be using a char map / array :
char map[10][10] = {
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 2, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 3, 3, 0, 0, 0, 1},
{1, 0, 0, 0, 3, 3, 0, 0, 0, 1},
{1, 0, 0, 0, 3, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 3, 0, 4, 4, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
};
so I went for X & Y, to make it easier, as you would read a road map.
Although I will relate this to the 3D world usind X,Z co-ords.
But thanks for looking out.
As for the rest of your post, what can I say.
Spot on !!, well it's exactly what I am doing ;) so I agree with you haha.
the only problem I seem to have now is the following :
for (int x = 0; x < gridSizeX; x += tileSize) // row (X) { if (x % 2 == 1) // if (row X) is odd rowOdd = TRUE; else rowOdd = FALSE; for (int y = 0; y < gridSizeY; y += tileSize) // col (Y) { if (!rowOdd) drawHexTile((float)tileSize, (float)x, (float)y); else drawHexTile((float)tileSize/2, (float)x + (tileSize/2), (float)y); } }
As "rowOdd" never returns TRUE .....
What have I missed ??
----------------------------------------Now just hit that link that says 'Rate This User' [wink]