The source code projects for each chapter are provided here in the sources folder.
Each chapter contains one or more example programs, and each program includes a project file for the following compilers:
* Visual C++ 6.0 ... extension = .DSW
* Visual C++ 2003 ... extension = .SLN or .VCPROJ
* Visual C++ 2005 ... [can open 2003 projects]
* Dev-C++ 5.0 ... extension = .DEV
All of these projects share the same source code files, bitmap files, audio files, and so on in each folder.
If you are using another compiler, you may follow the instructions in chapter 2 for configuring the compiler and then simply import that main.c or main.cpp source code file from a project folder into your new program.
The two bonus programs in this folder are StarBuilder and TankWar-Final. StarBuilder is the example particle attraction program described in the text, and of course the other folder contains the final version of Tank War. I would like to disclaim the version of Tank War included on the CD-ROM. This is a work in progress, not a complete game. The HUGE amount of changes required to implement game state and angular velocity required extensive rewrites of the source code, and a complete, polished, functional version of the game was a challenge in such a short time frame before the book went to press. For this reason, I encourage you to visit my web site at www.jharbour.com and join the forums, where you will find a significantly more polished and functional version of the game!
Again, were it not for the publishing deadline, a totally complete version of the game would have been included with the book. Rather than NOT provide it to you at all, what I've put on the CD-ROM here is about 85% complete. The important thing is, this code is not broken in any way, it compiles without incident, and works just fine, but the last finishing touches didn't make it into the game in time. So, check the web site, peruse the forums, as I'm constantly working to improve the game and will share it with you!