带有原始 Ghost AI 的吃豆人模板(帮助)

发布于 2024-10-06 16:51:33 字数 385 浏览 3 评论 0原文

我目前正在尝试实现一款完全自主的吃豆人游戏,您只需观看即可。我计划让真正的黄人人工智能能够完美地玩游戏。 我想让幽灵拥有像原版吃豆人一样的个性,但我更想寻找一个模板,一个已经制作好的吃豆人游戏,并且具有该功能,这样我就可以亲自研究吃豆人。

有谁知道该源代码是否可用?我已经尝试过 github,但没有找到任何类似于原始幽灵行为的内容,如下所述:http://gameinternals.com/post/2072558330/understanding-pac-man-ghost-behavior

谢谢

I'm currently trying to implement a fully autonomous Pac-Man game, where you just watch. I plan on making the actual yellow guy's AI to play the game flawlessly.
I want to make it so that the Ghosts have the personalities like in the original Pac-Man, but I'm more so looking for a template, a Pac-Man game that is already made, and has that feature, so that I can work on the Pac-Man himself.

Does anyone know if that source code is available? I've tried github, but I haven't found anything that resembles the original ghost behavior as described here: http://gameinternals.com/post/2072558330/understanding-pac-man-ghost-behavior

thanks

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

红焚 2024-10-13 16:51:33

此处提供了大量有关 pac-man 如何工作的信息。当您尝试为“完美”吃豆人玩家构建 AI 时,某些信息可能会很有用。

我认为您将很难访问原始的吃豆人源代码(南梦宫通常会让人们删除它)。最初的吃豆人是用 ASM 编写的,因此即使您掌握了它,您也可能很难阅读它。

There's a huge amount of information about how pac-man works here. Some of the information may be useful when you are trying to build the AI for the "perfect" pac-man player.

I think you will have a hard time getting access to the original pac-man source code (Namco usually gets people to remove it). The original pac-man was written in ASM so you may have a hard time reading that even if you do get a hold of it.

孤独患者 2024-10-13 16:51:33

只是在这里大声思考,但 Google 刚刚推出了完整 html5 版本的 PacMan 庆祝其成立 30 周年(吃豆人就是这样)。它被缩小了,我不确定他们是否拥有它的任何版权,但这可能是一个起点。

干杯!

Just thinking out loud here, but Google just put out a full html5 version of PacMan for its 30th anniversary (PacMan's that is). It's minified, and I'm not sure if they are holding any copyrights for it, but it might be a place to start.

Cheers!

顾冷 2024-10-13 16:51:33

这不是太多的答案,但如果你仍在寻找人工智能,我会将我迄今为止得到的内容发送给你。这是最初的人工智能,但生成 100% 准确的东西将相当困难。过去,游戏不使用后台缓冲区,因此屏幕会在每次垂直刷新时更新(约 1/60 秒)。大部分游戏逻辑是在中断发生时完成的,但幽灵AI是在中断发生之后完成的。因此很难判断在中断再次发生之前执行了多少汇编指令。但99%也不错。

This is not much of answer, but if you are still looking for the AI, I will send you what I got so far. It's the original AI, but generating something that is 100% accurate is going to be rather difficult. Back in the old days, games did not use back buffers, so the screen was updated on every vertical refresh that was ~1/60 of a second. most of the game logic was done when that interrupt happened, but the ghosts AI was done after. so it is hard to tell how many assembly instructions where executed before the interrupt went on again. But 99% is also nice.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文