4 ms·
Cool. The ghosts aren't very intelligent. :)
by dinde 16y ago
Cool. The ghosts aren't very intelligent. :)
- daleharvey 16y agoheh - http://github.com/daleharvey/pacman/blob/master/pacman.js#L219 http://github.com/daleharvey/pacman/blob/master/pacman.js#L2... I didnt realise the ghosts has fairly complicated strategy, should be fun to implement now the mechanics are mostly done.
- Batsu 16y agoI was just barely working on a pacman clone about two months ago... turned into mostly just research. It turns out the ghosts follow rather simple patterns between two modes (spread out / attack) which turn into complex behavior, mostly due to how they interact with each other. I found this thread very helpful for the Ghost AI: http://www.atariage.com/forums/topic/68707-pac-man-ghost-ai-question/page__p__845359 http://www.atariage.com/forums/topic/68707-pac-man-ghost-ai-...
- daleharvey 16y agothanks http://home.comcast.net/~jpittman2/pacman/pacmandossier.html http://home.comcast.net/~jpittman2/pacman/pacmandossier.html was the best guide I found, its brilliantly in depth and covers more behaviour than I ever realised, like how the pacman turns corners. Pity I only found it after I mostly finished it.