我想在我的六边形 map 游戏中使用 A*
寻路算法。我找到了一些 JavaScript 实现 here和 here .但是有没有可能把它应用到六边形 map 上呢?
在大多数情况下,它使用一些外部文件。我想我必须编辑它。但是我的 JavaScript 不太好,无法对其进行编辑。
你知道一些可以用于六边形 map 的实现吗?
最佳答案
http://vanreijmersdal.nl/development/experiments/javascript/hexpath/
http://www.matthewtrost.org/projects/astar/ (链接已失效——在 https://gist.github.com/1168189 找到了要点)
关于javascript - 在 JavaScript 中的 Hexmap 上进行 A* 寻路,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8241818/