5. Game Animation: Shooting and Bouncing Games
• Air Raid
So far, we have only built games where the game pieces stay in one place. They change and accept player input, but they don’t move.
In this chapter, we work with animated game pieces. Some are controlled by the player, and others have a life of their own.
After looking at some animation examples, we build two games. The first is Air Raid, a simple game in which you control an antiaircraft gun and try to shoot down planes flying overhead. The second game is Paddle Ball, in which you control a paddle and direct a ball up into a field of blocks that disappear ...