Pacman in HTML5 / Canvas
arandomurl.com
arandomurl.com
I havent implemented the proper behaviour for ghosts yet, I just wanted to publish this now as it was mostly about the html5 issues, I can do the proper behaviour later.
Sorry, needs a decent browser: (firefox 3.6+, Chrome 4+, Opera 10+ and Safari 4+)
But I run "Chromium 6.0.484.0 (54673) Ubuntu 10.04".
I feel that it would work perfectly on chromium 6, and you are a little bit too strict in your user agent check :-)
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.