Pac-Man

Pac-Man

A timeless classic! Eat Dots. Avoid Ghosts. Challenge Yourself! The Arcade Classic!

Guide Pac-Man through the maze, eat all the dots, avoid the colorful ghosts and try to get the highest score. A timeless arcade classic — free, no downloads.

The maze before a game: its walls spell out the word Google

Ready: three lives in the corner and the round about to start

Under way: steer along the top row while two ghosts are out

A little later, with more dots cleared and the ghosts closing in

Pac-Man plush toys in front of the doodle's sprite sheet and its JavaScript code

Google I/O 2011 talk on the secrets of the Pac-Man doodle, presented as a game show

Like this game?
Play, explore, enjoy together! Waka waka waka!
Play, explore, enjoy together! Waka waka waka!

At a glance

Released
May 21, 2010 — for Pac-Man's 30th anniversary
Made by
Google Doodles — Marcin Wichary and Ryan Germick
Based on
Pac-Man by Namco (1980), made with Namco's approval
Genre
Arcade maze game
Players
1, or 2 at once with Ms. Pac-Man
Controls
Arrow keys, mouse clicks or swipes; W, A, S, D for Ms. Pac-Man
Inside
A maze shaped like the Google logo: 270 dots and 5 power pellets
Levels
255, then the famous broken screen at level 256
Known for
Being the first playable Google Doodle

What the Pac-Man doodle is

On May 21, 2010 Google turned its logo into a working game of Pac-Man. The occasion was the 30th anniversary of the arcade original, which Namco released in Japan on May 22, 1980. The six letters of the word Google became the walls of a new maze, and the "I'm Feeling Lucky" button was replaced by one reading Insert Coin.

Google called it its first-ever playable doodle. It was meant to stay for 48 hours, twice the usual day. People liked it so much that Google gave it a permanent address, and ten years later, in May 2020, brought it back to the home page in its series of favourite past doodles to play at home.

It is not a loose imitation. The four ghosts think the way they did in the arcade, the familiar sounds are there, and even some of the old machine's bugs were rebuilt on purpose.

How to play

  • Arrow keys steer Pac-Man. You can also click in the maze with the mouse, or swipe on a touch screen.
  • Eat every dot to clear the level.
  • The four ghosts take a life when they catch you. You start with three lives and earn one more at 10,000 points.
  • A power pellet — one of the five big dots — turns the ghosts blue for a short while. Now you can eat them: 200, 400, 800 and 1,600 points for four in a row.
  • Fruit appears in the maze from time to time for bonus points, starting with cherries.

A tip from the arcade that works here too: Pac-Man takes corners a little faster than the ghosts do, so a zigzag route helps you get away.

Two players

In the original doodle, pressing Insert Coin a second time brought Ms. Pac-Man into the same maze, steered with W, A, S, D. The two play at the same time, each with their own score but sharing one stock of lives.

The four ghosts

Each ghost hunts in its own way, exactly as in 1980. Knowing who does what is the first step to a high score.

  • Red

    Blinky

    Heads straight for wherever Pac-Man is now, and speeds up as the dots run out.

  • Pink

    Pinky

    Aims for a spot a few steps ahead of Pac-Man, trying to cut him off.

  • Cyan

    Inky

    Works out his target from both Pac-Man's position and Blinky's, which makes him the hardest to predict.

  • Orange

    Clyde

    Chases Pac-Man from a distance, then loses his nerve when he gets close and heads back to his corner.

Who made it

The game was built by Marcin Wichary, a user-experience designer at Google who also programs, together with Ryan Germick, an artist on the doodle team. Namco gave its approval.

For Wichary the project was personal. His father repaired arcade and pinball machines in Poland, and as a boy Marcin travelled with him to seaside arcades, watching the repairs and playing for free. Pac-Man was one of his favourites. By his own later account, he ended up on the project partly because his desk happened to be next to the doodle team's.

In 2011 the two presented the whole story at the Google I/O conference — in the form of a quiz show with the audience, called "The Secrets of Google Pac-Man".

How it was made

Rewritten from scratch

The doodle does not run the old arcade program. Wichary spent months studying published research on how Pac-Man works inside and rewrote it for the browser: about 5,200 lines of JavaScript and 123 small pictures packed into one image file, according to the I/O talk. The team waited before approaching Namco, because they wanted to show an almost finished game.

Bugs kept on purpose

In the arcade machine, Pinky and Inky aim slightly wrong whenever Pac-Man faces up — a programming slip that expert players learned to use. Wichary copied the slip. He also rebuilt the legendary level 256, where the original runs out of numbers and half the screen dissolves into garbage. Google's version draws a look-alike of that screen, and the game ends there.

One bug was not planned. Germick found that Pac-Man could sometimes slip through a wall. Wichary could not track down the cause, so the game simply remembers the last proper square Pac-Man stood on and puts him back there. He admitted in the talk that this treats the symptom, not the illness.

A new maze changes the game

The arcade maze holds 240 dots and 4 power pellets. The Google maze is wider and holds 270 and 5. The rules of movement are the same, but the old memorised routes are useless here.

Sound was the hard part

Browsers in 2010 could not yet be trusted to play game sounds properly, so the pictures and the game ran on plain web technology while the audio went through Flash. That is why early iPhones and iPads could play the doodle by swiping, but silently. Wichary has since written that the preserved version no longer needs Flash.

Fun facts and small secrets

  1. It played itself, and haunted Firefox

    If nobody touched the doodle for ten seconds, the game started on its own, with sound. Wichary has told how, on launch day, people complained of strange noises from their computers with no Google page in sight. The culprit was a Firefox add-on, CoolPreviews, which quietly loaded google.com in the background. Within hours he added a mute button and made the sound wait for a real player.

  2. The "120 million dollar" game

    The time-tracking firm RescueTime saw its users spend 36 seconds longer than usual on Google that Friday, stretched the figure over all of Google's visitors and arrived at 4.82 million hours, or about 120 million dollars of working time. Its author later said it was a bit of fun with numbers, but the headline stuck.

  3. Two days became forever

    On May 23, 2010, as the 48 hours ran out, Google's Marissa Mayer announced that the game would stay online for good at google.com/pacman.

  4. Ghosts pick a favourite

    With two players in the maze, each ghost chooses at random which of them to hunt every time it leaves the ghost house.

  5. The coffee breaks are there too

    The short cartoon scenes that the arcade game shows between certain levels were recreated as well. The first comes after level 2.

  6. Someone played it on a Wii

    Among the reactions Wichary and Germick showed at Google I/O were players who had got the doodle running on an iPhone and in the web browser of a Nintendo Wii — and one who complained that the smell of an old arcade was missing.

More Pac-Man and what came after

A year after Pac-Man, Google made a logo you could play music on, Les Paul's guitar, which RescueTime promptly measured against Pac-Man.

On this site you can also play PAC-MAN: Halloween 2025 Edition.

Sources (10)
  1. 30th Anniversary of PAC-MAN — Google Doodles
  2. Celebrating PAC-MAN's 30th birthday — Official Google Blog
  3. The Secrets of Google Pac-Man: A Game Show — Google I/O 2011 (video)
  4. The Secrets of Google Pac-Man — presentation slides, Marcin Wichary
  5. Pac-Man's siren call — Marcin Wichary, Unsung
  6. Permanent PAC-MAN — Google Student Blog
  7. Stay and Play at Home with Popular Past Google Doodles: PAC-MAN (2010) — Google Doodles
  8. The Tragic Cost of Google Pac-Man: 4.82 million hours — RescueTime Blog
  9. No, the Google Pac-Man doodle didn't cost anyone anything — Business Insider
  10. Google's Pac-Man doodle — Wired

Comments

No comments yet — be the first!

More Arcade Games

More classic and fun arcade games to play!

View All Arcade Games
Classic games, happier days!
Play More Games at DoodlePlay! Good people play good games.