Hacker News new | ask | show | jobs
by devsquid 2022 days ago
This is cool. I recently wrote an A* pathfinding system for a hex based game. Choosing a good coordinate system 100% makes this easier.
1 comments

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