How-To's > How do I build a game?
See the following links for tutorials and examples of how to build JavaFX game applications.
- Brick Breaker
This sample contains a single-user game. It incorporates the following important game concepts:- Controlling an onscreen object with user input
- Displaying onscreen events by using animation
- Keeping track of scores and lives
- Pac-Man

This multipart tutorial, written for JavaFX 1.2, walks you though building this popular game as a JavaFX application. In the first part, you create the data model for the maze, which controls drawing the maze. In the second part, you create the Pac-Man character and the following actions that it can execute:- Open and close its mouth
- Walk the maze
- Change its location based on user input
- Gobble dots
- Wishtree

This game prototype, written for JavaFX 1.2, is a multiuser application that includes the following components of game applications:- A JavaFX rich client for user interaction
- A server handling communication among multiple clients
- A database for data persistence
Last Updated: April 2010
[Return to How-To's Home]