UPDATE: June 30, 2009
If you are interested in how to write the Pac-Man game in JavaFX, the source code of this game, please check out this article:
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.
Arrow keys to move and control to pac-man to eat all dots inside the maze. The big dots are magic dots which allow the pac-man to eat ghosts.
JavaFX Features Demostrated:
- 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, it will take some time for first time launching the game …
My JavaFX code is compatible with the newly released JavaFX 1.0. JavaFX is for Windows and Mac for now. The unofficial JavaFX SDK of Linux can be found here:
If you cannot play now, you can watch the video: