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.
- 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.
- Download the zip file
pacman-ui-fx-3d-jlink-1.0-jlink.zip
from the release folder. Extract it somewhere and execute filerun.cmd
in folderbin
.
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!
- Clone repository pacman-basic.
- Clone repository pacman-javafx.
cd \path\to\git\pacman-javafx
build.bat
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
(folderpacman-javafx\pacman-ui-fx\target
), - create an executable jar-file
pacman-ui-fx-3d-1.0-shaded.jar
(folderpacman-javafx\pacman-ui-fx-3d\target
), - create a zip file
pacman-ui-fx-jlink.1.0-jlink.zip
(folderpacman-javafx\pacman-ui-fx\target
). - create a zip file
pacman-ui-fx-3d-jlink-1.0-jlink.zip
(folderpacman-javafx\pacman-ui-fx-3d\target
).
- 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.
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
YouTube: