Question

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

Javascript?

Was it helpful?

Solution

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

OTHER TIPS

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.

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top