JavaScript 中 Hexmap 的 A* 寻路
我想在带有六边形地图的游戏中使用 A*
路径查找算法。我在此处和此处。但有没有可能将其应用到六边形地图上呢?
在大多数情况下,它使用一些外部文件。我想我必须编辑它。但我不太擅长 JavaScript 来编辑它。
您知道一些可用于六角形地图的实现吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://vanreijmersdal.nl/development/experiments/javascript/hexpath/
http://www.matthewtrost.org/projects/astar/ (链接为死了——在 https://gist.github.com/1168189 找到了要点)
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)