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

后端 未结 22 2287
南方客
南方客 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:20

    It's a pathfinding problem. For a popular algorithm, see http://wiki.gamedev.net/index.php/A*.

提交回复
热议问题