JavaScript-PacMan 2.6 mini

New Game
End the current game and start a new one?
New Game
Mazes: Sound:  
- + - +
Animation quality:   Speed:  

collapseAbout JavaScript-PacMan 2 mini

"JavaScript-PacMan 2" is another step in the evolution of the famous "JavaScript-PacMan". This game is written in pure JavaScript and doesn't require any plug-ins or other extensions. If Flash-Player 9.0 or higher is detected, an additional Flash-movie is used to provide the sounds.

The use of sound may affect the animation speed of the game.
Set the sound slider to zero to optimize the game for slower machines.

"JavaScript-PacMan" was originally designed as a demo-page for an advanced employment of JavaScript animation techniques. The first version (for Netscape Navigator 3.0) was published in late 1996/Jan.1997 and might well have been the first arcade style game on the web implemented in JavaScript only!

About the "mini"-version:
The "mini" version is a direct descendant of the original version for small screens (12") and has been found useful with modern handheld devices (e.g.: iPhone).

Please mind the (unusual) diagonal connections of the "teleport gates"!

How to Play

Anyone who doesn't know Pac-Man?   Really?   O.K. – That's how to play:

Guide the Pac-Man, the munching yellow ball, through the maze and eat all the food, the little white dots laid out all around the passages. But be aware of the ghosts: they will give their best to pursue and catch you. (The ghosts will become more intelligent and dangerous in higher levels.)
There are also some bigger pellets: the power pills. Swallow one of these to become invincible for a few seconds. Now – while the ghosts are turned blue – you my haunt those nasty runners for some extra points.

A propos scoring: You will collect an extra live for every 10000 points (but you may not have more than five lives in stock).

Moving / Controls

Use the cursor keys or the numeric keypad to navigate the pac-man.

You may also use the following keys:


Other controls:

  N....New game
P or ESC....Pause / resume

Touch Screens / Mouse Control

Use any of these two concepts:

1)  Control the pac-man by strokes (mouse gestures) at the maze:

  • Click (tap) anywhere in the maze and drag the pointer in the desired direction.
    (You may steer in advance, not only when the pac-man is just encountering a crossing.)
  • Double-click (tap rapidly twice) to pause/resume the game.
  • Use the "New Game" button to start a new game.
  • Special Moves:
    You may even use compound gestures (e.g.: left and up in a single movement): Steer in the first direction, keep the mouse down and steer in the next direction just after the turn.
    This may be especially useful to navigate through winding passages as you haven't to click again for every turn.

2)  Use the controller at the lower right side of the maze:

  • Center the mouse pointer over the controller at the lower right side of the game area and move the mouse in the direction you want the Pacman to move.
  • Click the ball in the middle of the controller to pause the game. Click again to continue.

Levels and Layouts

"JS-Pacman 2 mini" comes with a set of 5 predefined levels. As you advance any further, the mazes will be generated on the fly by the unique random maze generator.
The random maze generator provides an unlimited number of different mazes for endless fun and varying game play. You may also choose "Random Levels" from the "Mazes" pop-up menu to start with random generated levels just from the beginning.

Sound Integration

A tiny Adobe Flash movie (swf-file) is used as a simple sound player in case that Flash Player 9.0 or higher is detected. This provides a robust cross-browser sound integration in absence of any real world standard for sound integration and scripted sound control. Flash is not used for any other purpose – the game works just the same without the Flash plug-in. (Even the volume control is implemented in DHTML, just for the fun of it.)

Pac-Man Trivia

The original Pac-Man arcade game (which differs in some ways from this game) was first released by Namco (licensed and distributed in the U.S. by Midway) in 1980. The game was originally named "Puck-Man" (from paku paku – Japanese slang describing the motion of an opening and closing mouth while eating), and was renamed to conform to the North American market.

Eventually Pac-Man became the most successful video game ever, causing even a coin shortage in Japan. It is listed as the all time number one at the "Top 100 Videogames" of the Killer List of Videogames.

One of the most important off-springs was Ms. Pac-Man (released 1981 by Midway/GCC, later Namco). While the original Pac-Man featured a single maze and deterministic ghost movements, Ms. Pac-Man introduced changing mazes and some random to the ghosts in favor for a more varying game play.
So in fact JavaScript-PacMan owes more to Ms. Pac-Man than to the original Pac-Man game.


All scripts and images: © 1996-2011 N. Landsteiner, mass:werk – media environments

All rights reserved. No copying or publication without the author's written permission.

Version History

JavaScript-PacMan vers. 2.5 released Sept. 20011.

Added support for Google Chrome Frame   (Sept. 2009)

New features of JavaScript-PacMan vers. 2   (Dec. 2007):

  • random maze generator
  • even refined ghost AI
  • multi colored maze layouts
  • new graphics & effects
  • sound effects
  • improved mouse controls for touch screens

Previous versions and updates:

  • 2004: unified cross browser version and DOM compatibility
  • Aug. 1997: smooth animations (for NS 4.0 layers, MSIE 4.0 css)
  • Mar. 1997: 5 different level layouts, revised script
  • Feb. 1997: 3 different level layouts, improved controls
  • Dec. 1996/Jan. 1997: first release (for Netscape 3.0 and 12" screens)

see also:


mass:werk – home   |   mass:werk games – front page   |   contact