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 didnt realise the ghosts has fairly complicated strategy, should be fun to implement now the mechanics are mostly done.
I found this thread very helpful for the Ghost AI: http://www.atariage.com/forums/topic/68707-pac-man-ghost-ai-...
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.