Skip to content

This is the WebFX version of the JavaFX games Pac-Man / Ms. Pac-Man written by Armin Reichert (see webfx branch)

License

Notifications You must be signed in to change notification settings

webfx-demos/webfx-demo-pacman

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A JavaFX UI (2D + 3D) for Pac-Man and Ms. Pac-Man

About this project

A JavaFX user interface for my UI-agnostic Pac-Man / Ms. Pac-Man game implementations.

Both games can be played either in 2D-only or in 2D and 3D (full version). In the full version, you can switch during the game between 2D and 3D view by pressing the key combination Alt+3.

How to run the released version

With Java runtime 18+ installed on your computer (Windows):

  • Download the executable jar file pacman-ui-fx-3d-1.0-shaded.jar from the release folder. Start the application by double-clicking this file in the file explorer.

Without locally installed Java runtime (Windows):

  • Download the zip file pacman-ui-fx-3d-jlink-1.0-jlink.zip from the release folder. Extract it somewhere and execute file run.cmd in folder bin.

To build the executable by yourself on non-Windows systems, run the steps in the build script manually or create a shell script or whatever. Any help in creating executables for Mac-OS and Linux is appreciated!

How to build locally

This will

  • run a Maven build of the pacman-core project (game logic and model),
  • run a Maven build of the pacman-ui-fx project (2D-only),
  • run a Maven build of the pacman-ui-fx-3d project (2D+3D),
  • create an executable jar-file pacman-ui-fx-1.0-shaded.jar (folder pacman-javafx\pacman-ui-fx\target),
  • create an executable jar-file pacman-ui-fx-3d-1.0-shaded.jar (folder pacman-javafx\pacman-ui-fx-3d\target),
  • create a zip file pacman-ui-fx-jlink.1.0-jlink.zip (folder pacman-javafx\pacman-ui-fx\target).
  • create a zip file pacman-ui-fx-3d-jlink-1.0-jlink.zip (folder pacman-javafx\pacman-ui-fx-3d\target).

How to run the locally built versions

  • If Java runtime 18+ is installed, start the executables jar-files by double-click.
  • Alternatively, extract the zip-file and execute the run.cmd file as described above.
  • Or just execute the run.bat / run2d.bat scripts located in the repository root folder.

How to use (full version)

Starting the game and switching game variant:

  • V Switch between Pac-Man and Ms. Pac-Man (only possible on intro screen)
  • 5 Add credit ("insert coin")
  • 1 Start game

Pac-Man steering:

  • Pac-Man is steered using the cursor keys. When the dashboard is open, these keys are taken away by the JavaFX widgets. In that case, you can steer Pac-Man using key combination CTRL+cursor key.

General shortcuts:

  • F11 Enter fullscreen mode
  • Esc Exit fullscreen mode
  • F1 or Alt+B Toggle dashboard
  • F2 Toggle picture-in-picture view
  • Alt+Z Play all intermission scenes
  • Alt+3 Toggle using 2D/3D play scene

Play screen shortcuts:

  • Alt+LEFT Select previous camera perspective
  • Alt+RIGHT Select next camera perspective
  • QQuit play scene and show intro screen

Cheats:

  • Alt+A Toggle autopilot mode
  • Alt+E Eat all pills except the energizers
  • Alt+I Toggle immunity of player against ghost attacks
  • Alt+L Add 3 player lives
  • Alt+N Enter next game level
  • Alt+X Kill all ghosts outside of the ghosthouse

How it looks

3D Play Scene

Play Scene

Dashboard

Dashboard

Dashboard

Dashboard

Dashboard

Dashboard

Dashboard

Dashboard

Dashboard

YouTube:

YouTube

About

This is the WebFX version of the JavaFX games Pac-Man / Ms. Pac-Man written by Armin Reichert (see webfx branch)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.5%
  • Other 0.5%