Game Development Reference
In-Depth Information
Enemy plane right
(library class name
PlaneRightGif
): This plane flies in from the right.
The lower it enters the screen, the harder it is to shoot down. See Figure 4-6.
Figure 4-6.
Plane flying in from the right side
Explosion
(library class name
Ex21Gif. . .Ex25Gif
): This is the animation we use
when anything explodes in the game. See Figure 4-7.
Figure 4-7.
Explosion animation frames
Ship
(library class name
ShipGif
): This is the ship the player must defend from the
enemy planes. The player starts the game with three ships in the fleet. See Figure 4-8.
Figure 4-8.
Ship
Bonus plane
(library class name
PlaneBonusGif
): The bonus plane always flies in from
the left. If it is shot down, the player earns extra shots for the cannon. See Figure 4-9.
Figure 4-9.
Bonus plane
Crosshairs
(library class name
CrosshairsGif
): The player controls this with the mouse.
Shots fire directly to the center and explode into flak explosions when they reach that
point. See Figure 4-10.
Figure 4-10.
Crosshairs