I spent some time to implement the classic game “PAC MAN”. It demos many features of the JavaFX language. Right now, it is a “simplified” PACMAN Game. I am working on the code and hopefully to complete the PACMAN game soon. Source code is not released yet because I plan to do so when I finish the whole game. A blog of writing this game will be available soon. Stay tuned.
Usage:
Arrow keys to move and control to pac man to eat all beans inside the maze. The big beans are magic beans which allow the pac man to eat ghosts.
JavaFX Features Demostrated:
- Bindings
- Animations
- Effects
- Transforms
- Multiple inheritant
- Java classes integration
- Declarative statements
- Sequences, how to map 2D arrays into a 1D Sequence
- Handling keyboard events
JRE 1.5+ required, JRE1.6 U10 is better because it allows draggable applet to run outside the browser. It will take some time for first time launching JavaFX application …

My JavaFX code is compatible with the newly released JavaFX 1.0. JavaFX is for Windows and Mac for now.

[...] JavaFX Demo Game: PAC-MAN [...]
Pingback by Articles on Writing the JavaFX Pac-Man Game — May 16, 2009 @ 9:51 am
[...] Related Articles: My JavaFX Demo Game: Pac-Man Articles on Writing the JavaFX Pac-Man Game Pac-Man Game WidgetFX Widget JavaFX Game Example Code: MineSweeper JavaFX Game Demo Example: Pac-Man [...]
Pingback by Writing the JavaFX Pac-Man Game Part 3 — May 31, 2009 @ 3:50 am
[...] Related Articles: More articles on JavaFX Games: Developing Games in JavaFX Source of the Pac-Man Game JavaFX Demo Game: MineSweeper JavaFX Demo Game: LinkUP Game Widgets for WidgetFX: Pac-Man My JavaFX Demo Game: Pac-Man [...]
Pingback by Writing the Pac-Man Game Part 4 — June 19, 2009 @ 9:52 pm