About the Code in this tutorial

In this tutorial, almost all the code will go into packages. This means you won't end up with hundreds of Java files in the same directory, and the layout of the packages will make the entire code library easier to understand. The only code that won't go in packages is simple Java files designed specifically for a chapter demo, which are usually named with the word Test, as in CollisionTest. The code is divided into segregated directories for each chapter so that code from one chapter doesn't interfere with another. With all of the code reuse in this tutorial, this means the code for one chapter usually contains all the code from the previous chapter, possibly with a few add-ons as the code progresses forward. Also, most of the code for each chapter includes Ant build files so you can easy compile and build the code.