O'Reilly logo

ActionScript 3.0 Game Programming University, Second Edition by Gary Rosenzweig

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5. Game Animation: Shooting and Bouncing Games

image

Game Animation

Air Raid

Paddle Ball

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required