views:

702

answers:

5

I was wondering, how was the PacMan game on Google.com implemented?

Javascript?

A: 

I believe it is Javascript, yes

Carson Myers
+21  A: 

JavaScript with HTML for the graphics (no canvas, but sprite divs etc). There is also a bit of flash for the music.

Here is the master sprite: alt text

cherouvim
I may disagree with their methods from time to time, but the people at Google are some serious studs.
Alan
Yea, considering the time invested into this. They are truly awesome when if comes to doing things differently! But again, I am also not a big fan of Google!
zengr
makes me want to program a platform game in javascript...
cherouvim
+5  A: 

I had a quick look at the Google homepage HTML, and found a link to this JavaScript script:

/logos/js/pacman10-hp.3.js

So I'd say yes, it's implemented in JavaScript.

stakx
+3  A: 

Here is the complete javascript code. You might want to run it through a Javascript Beautifier. It's too long to post here.

Eric
I found this: http://stackoverflow.com/questions/2884064/howto-download-local-copy-of-googles-pacman-game/2886890#2886890
zengr
+1  A: 

Yes, Javascript and Html. A rewritten version can be found on GitHub.

MKroehnert