Pacman: how do the eyes find their way back to the monster hole?

后端 未结 22 2068
南方客
南方客 2021-01-29 17:53

I found a lot of references to the AI of the ghosts in Pacman, but none of them mentioned how the eyes find their way back to the central ghost hole after a ghost is eaten by Pa

22条回答
  •  难免孤独
    2021-01-29 18:17

    This was the best source that I could find on how it actually worked.

    http://gameai.com/wiki/index.php?title=Pac-Man#Respawn When the ghosts are killed, their disembodied eyes return to their starting location. This is simply accomplished by setting the ghost's target tile to that location. The navigation uses the same rules.

    It actually makes sense. Maybe not the most efficient in the world but a pretty nice way to not have to worry about another state or anything along those lines you are just changing the target.

    Side note: I did not realize how awesome those pac-man programmers were they basically made an entire message system in a very small space with very limited memory ... that is amazing.

提交回复
热议问题