O'Reilly logo

Understanding Flash MX 2004 ActionScript 2 by Alex Michael

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

12

Goose Game

Introduction to Design and Programming of an Application

The main objective of this chapter is to put everything you have learned into building a game with the support of a step-by-step breakdown and explanations of all the code. The game is available from www.sprite.net/understanding and is made up of a simple syntax:

duplicateMovieClip( )

else

for

if

with

startDrag( )

onClipEvent( )

The Game Loop

A game can be decomposed into five processes that continually run into a loop. It is a basic formula that almost every game has to have. The game loop is a series of processes for getting input from and displaying output to the user and updating the game. The five basic processes are:

  1. The Introduction – The start screen has an animation ...

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