r/programming • u/hazadess • Apr 23 '13
PathFinding algorithm, visually explained
http://qiao.github.io/PathFinding.js/visual/
2.2k
Upvotes
r/programming • u/hazadess • Apr 23 '13
View all comments
Show parent comment
4
u/Romenhurst Apr 24 '13
I think kazagistar was referring to the way hex tiles are represented in the code. The result of shifting every other row by half a tile width and only allowing diagonal movement in either NW/SE or NE/SW will effectively create a hex grid.