My First JavaFX Demo Game: PAC-MAN
Posted: under JavaFX Games.
Tags: demo, game, javafx
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.
Comments (3)
Dec 07 2008

