Re:Hexagonal Grids (2013)
by devsquid on Monday December 07, 2020 @09:09PM
(#25340782)
This is cool. I recently wrote an A* pathfinding system for a hex based game. Choosing a good coordinate system 100% makes this easier.
[ Parent
| on HN ]
Which one did you go for?
I went with what they call the "Axial coordinates". I think the alternative, "Cube coordinates", causes a lot of issues and confusion when writing game logic.
My imagination fails when I attempt to think of a good reason for using the 'offset' coordinates. If someone knows of one, I'd be open to hearing it, but I suspect that it makes things quite tricky