Re:Pacman in HTML5 / Canvas
by dinde on Monday July 26, 2010 @04:36PM
(#1549196)
Cool. The ghosts aren't very intelligent. :)
[ Parent
| on HN ]
Re:Pacman in HTML5 / Canvas
by daleharvey on Monday July 26, 2010 @04:55PM
(#1549255)
heh - 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.
I 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-...
Re:Pacman in HTML5 / Canvas
by daleharvey on Monday July 26, 2010 @05:26PM
(#1549349)
thanks
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.