Arrays for a heightmap tile-based map
- by JPiolho
I'm making a game that uses a map which have tiles, corners and borders. Here's a graphical representation:
I've managed to store tiles and corners in memory but I'm having troubles to get borders structured.
For the tiles, I have a [Map Width * Map Height] sized array. For corners I have [(Map Width + 1) * (Map Height + 1)] sized array.
I've…