Reputation: 590
I want to use the A*
path finding algorithm in my game with a hexagonal map. I found some JavaScript implementations here and here. But is there any possibility to apply it to the hexagonal map?
In most cases it uses some external file. I think I must edit it. But I´m not so good in JavaScript to edit it.
Do you know some implementation that can be used to the hexagonal map?
Upvotes: 4
Views: 3650
Reputation: 21517
http://vanreijmersdal.nl/development/experiments/javascript/hexpath/
http://www.matthewtrost.org/projects/astar/ (link is dead -- found a gist at https://gist.github.com/1168189)
Upvotes: 5