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 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 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: November 2009
[Return to How-To's Home]
Do you have comments about this article? We welcome your participation in our community. Please keep your comments civil and on point. You may optionally provide your email address to be notified of repliesyour information is not used for any other purpose. By submitting a comment, you agree to these Terms of Use.