PacMan on Google homepage, how is it implemented? [closed]
-
04-10-2019 - |
Question
I was wondering, how was the PacMan game on Google.com implemented?
Javascript?
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:
OTHER TIPS
I had a quick look at the Google homepage HTML, and found a link to this JavaScript script:
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