Keeping It Simple
Using the game development framework built in Chapter 4, we build our first Java game–a simple single-player Pong clone with a twist. This chapter explains how to design and implement model classes and incorporate them into a single state class, which represents a game screen. Other topics covered include collision detection, input handling, dependency reduction, and simple physics.
The following .zip download contains the full source code for each programming example provided in this chapter.
LonePong (Complete): The full source code for the LongPong game.
Click Here to see how to import the above projects into your workspace.
The following .zip download contains all assets used in this chapter.
bounce.wav, hit.wav, iconimage.png, welcome.png, line.png
1. For a list of all known in-text errors, please see the Errata.
This section will be updated as needed. Please post on our forums if you need assistance or explanation on topics covered in this chapter.