News for hackers. Stuff that matters.
Re:Pacman in HTML5 / Canvas by simcop2387 on Monday July 26, 2010 @05:48PM (#1549427)
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.
Re:Pacman in HTML5 / Canvas by daleharvey on Monday July 26, 2010 @05:51PM (#1549439)
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.

Re:Pacman in HTML5 / Canvas by simcop2387 on Monday July 26, 2010 @06:36PM (#1549566)
Ah that explains it, good to know that its currently as intended :)
Re:Pacman in HTML5 / Canvas by Kilimanjaro on Monday July 26, 2010 @05:15PM (#1549314)
I would like to see a pacman in svg for comparison purposes.
Re:Pacman in HTML5 / Canvas by ithkuil on Friday August 06, 2010 @08:25AM (#1580829)
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 :-)

Re:Pacman in HTML5 / Canvas by sxtxixtxcxh on Monday July 26, 2010 @07:47PM (#1549729)
It complains in Safari 5 and the WebKit nightly build that I need a better browser.
Re:Pacman in HTML5 / Canvas by daleharvey on Monday July 26, 2010 @07:54PM (#1549742)
yeh I was quite surprised that safari failed the test to play audio, usually when stuff works in chrome its ok in safari, I assume its some silly mistake on my end but as far as I can tell, safari doesnt support ogg audio at least.
Re:Pacman in HTML5 / Canvas by _maxime on Tuesday July 27, 2010 @03:05AM (#1550488)
Safari support has been added in a fork http://github.com/jpld/pacman
Re:Pacman in HTML5 / Canvas by michaeltwofish on Monday July 26, 2010 @11:49PM (#1550179)
That's right, Safari doesn't support Ogg. See http://diveintohtml5.org/video.html#what-works.
Re:Pacman in HTML5 / Canvas by shirtless_coder on Monday July 26, 2010 @09:58PM (#1549998)
That was one of the more difficult pacman implementations I've played.
Re:Pacman in HTML5 / Canvas by dinde on Monday July 26, 2010 @04:36PM (#1549196)
Cool. The ghosts aren't very intelligent. :)
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.

Re:Pacman in HTML5 / Canvas by Batsu on Monday July 26, 2010 @05:18PM (#1549320)
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.

Re:Pacman in HTML5 / Canvas by Optikal on Tuesday July 27, 2010 @02:13AM (#1550404)
pacman_util.js is missing from your tree, and I don't see anywhere mentioning what it might be,.
Re:Pacman in HTML5 / Canvas by th0ma5 on Monday July 26, 2010 @09:50PM (#1549979)
so the google one was what, flash?
Re:Pacman in HTML5 / Canvas by spcmnspff on Tuesday July 27, 2010 @03:41AM (#1550547)