• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The game begins…

To get the gameplay underway, we employ two handlers, newGame and InitWave. The first calls the second, but only after establishing beginning values and navigating to the frame named start, which is where the gameplay takes place.

The handler InitWave is one of three that manage the waves of alien invaders (the others are NewWave and SameWave). It starts the action by invoking no less than 13 global variables and then attends to a number of tasks. First it sets still more parameters, mostly for globals. The first line places the current score into the field Cast member that is displayed on the Stage.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint