20 comments

[ 5.0 ms ] story [ 60.9 ms ] thread
Cool. The ghosts aren't very intelligent. :)
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-...

I would like to see a pacman in svg for comparison purposes.
Seems to have a small bug, dead ghosts that are on their way back to the middle to be reborn can kill you while you are still able to eat the other ghosts.
They dont go back to the middle at all, they just wander around quickly for a few seconds then turn back.

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.

Ah that explains it, good to know that its currently as intended :)
Is there a way to turn the sound off? I couldn't find a way.
Is there a way to turn the sound off? I couldn't find a way.
It complains in Safari 5 and the WebKit nightly build that I need a better browser.
That was one of the more difficult pacman implementations I've played.
pacman_util.js is missing from your tree, and I don't see anywhere mentioning what it might be,.
It says:

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 :-)