Building the One-Player Game
Because you’ve already done so much work in previous chapters, you don’t need to change many things to build your first real game. The only files from the previous chapter that you must change for your one-character game are
- Open a new Eclipse project, and name it AllTogether.
- Copy all the files from the SoundTest project in Chapter 4. Don’t forget to copy both the Java source files in the
srcfolder and the resource files in the
Before you start making changes, let’s go over the procedure for handling motion and collisions.
Upgrading the Game Sprites
You begin by upgrading your sprites so you can more finely control their motion and detect collisions between them ...