如何将A-Star算法调整为角色无法跳跃的2D平台游戏?

发布于 2025-01-30 10:37:54 字数 400 浏览 2 评论 0原文

我一直在努力创建类似于游戏中的探路解决方案( https:/根据开发团队的提示,/Youtu.be/59z-tteetag?t = 359 )),探路算法是基于A-Star的,但A-Star官方文件表示与2D Platformer不兼容游戏,因此他们必须做出一些重要的更改。 游戏中的角色可以攀登墙/梯子,找到通往任何地方的路径,而无需在2D平台级别上跳跃。

我已经检查了许多有关2D平台的文档和教程,但是游戏玩法不同,并且某些解决方案是基于AI的解决方案,这并不是世界制作的方式。

我想知道我是否可以有一些有关如何制作这种探索解决方案的提示。

非常感谢。

I have been working on creating a pathfinding solution similar to that in the game Craft the World (https://youtu.be/59z-TTeetAg?t=359), according to the tip from the dev team, the pathfinding algorithm is based on a-star, but a-star official document says it's not compatabile with 2D platformer game, so they must have made some important changes.
The character in the game can climb wall/ladder, find its path to any place without the need of jumping in a 2D platformer level.

I've checked many documents and tutorial about 2D platformer pathfinding, but the gameplays are different, and some solution are AI-based which is not the way Craft the World does.

I'm wondering if I can have some tips on how to make such pathfinding solution.

Thanks very much.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文