Skip to content

armin-reichert/webfx-pacman

Repository files navigation

WebFX UI for Pac-Man and Ms. Pac-Man Arcade games

About this project

Repository pacman-basic contains a UI-agnostic Java implementation of the classic Arcade games Pac-Man and Ms. Pac-Man. A JavaFX user interface for these games, with 2D and 3D play scenes, can be found here.

This repository contains a WebFX-compatible version of the JavaFX user interface (without 3D scenes). It can be run on all platforms supported by WebFX, especially inside a browser via the GWT implementation.

How to use

The game can be started by opening one of the following URL(s) in a browser:

Scene selection

From the start page and from the intro scence of either game, you can switch to the other game variant by pressing V. Pressing Enter or Space or clicking the "Play!" button displays starts the intro scene of the selected game variant.

To be able to play, you first have to "insert a coin" which is done either by pressing the key 5 or by clicking anywhere on the intro scene. After having added credit, the game can be started by pressing key 1 or by clicking anywhere with the mouse (or touching). (The used keys are derived from the MAME Arcade emulator). To quit the play scene and return to the intro scene, press key Q.

Pac-Man steering:

  • Pac-Man is steered using the cursor keys.

Simulation control:

  • P: Toggle pause mode
  • Shift+P or Space: Single step
  • T: Ten steps
  • Alt+F: Run faster (in 5 Hz steps)
  • Alt+S: Run slower (in 5 Hz steps)
  • Alt+0: Run at 60 Hz

Test modes: (available from intro screens)

  • Alt+C: Play the cutscenes of the game

Cheats:

  • Alt+Shift+A: Toggle autopilot mode
  • Alt+Shift+I: Toggle immunity mode

Play scene cheats:

  • Alt+E: Eat all pills except the energizers
  • Alt+L: Add 3 player lives
  • Alt+N: Enter next game level
  • Alt+X: Kill all ghosts outside the ghost house

Mouse or touch screen Pac-Man steering

  • Intro scene: Click/tap anywhere to "add a coin" and change to the "credit scene".
  • Credit scene: Click/tap anywhere to start the game and change to the play scene.
  • Play scene: To steer Pac-Man, use a mouse drag or a "wipe" gesture. Dragging / wiping anywhere inside the maze to any direction causes Pac-Man to move to that direction (as soon as he can).

About

WebFX compatible version of Pac-Man / Ms.Pac-Man games

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published