


If (document.f & document.f.btnI) document.f.btnI.

You can control Pac-man using the arrow keys or the mouse pointer. The gameplay is similar to the original Pac-Man. Var b = document.getElementById("logo-l") In the Pac-Man Doodle, players control a version of Pac-Man, the iconic character from the original arcade game, as he moves through a maze collecting dots and avoiding ghosts. So, first of all they have a element that contains the playable area:ĭocument.getElementById("logo").style.background = "black" I didn’t reverse-engineer the entire code I just wanted to get a general idea of how they had done it … it seems to me that Google, after all, has extremely concise and efficient code to solve a lot of their problems. Google’s homepage today (May 21, 2010) has a Pacman doodle – and the interesting thing is: its playable! And is Google’s first ever playable doodle!īeing a geek, I decided to have a look at the source code to find out how Google had done it. Its daily doodle celebrated Pac-Man's 30th birthday on that particular day, and the Google overlords craftily replicated not only the look, but the actual.
