Game Development Reference
In-Depth Information
Part II
Creating Colorful Games
In this part, you develop a game called Painter (see Figure II-1 ). While you're developing this game,
I also introduce a few new techniques that are very useful when programming games, such as
organizing instructions in classes and methods, conditional instructions, iteration, and much more.
Figure II-1. The Painter game
The goal of the Painter game is to collect three different colors of paint: red, green, and blue. The
paint falls from the sky in cans that are kept floating by balloons, and you must make sure each can
has the right color before it falls through the bottom of the screen. You can change the color of the
paint by shooting a paint ball of the desired color at the falling can. You can select the color that you
55
 
Search WWH ::




Custom Search