Speedball

This is the first fully fledged game, which is basically seven lines of code repeated four times (once for each direction arrow). It introduces two really important ideas, the use of onEnterFrame to runs actions continuously, and the use of IF statements to test for conditions. All the other games depend upon these ideas, so this game represents a stepping stone to future programming development. Action Script concepts include:

  • Organising games into sections (introduction, game on, game over)
  • Frame events (using onEnterFrame to run events continuously)
  • Using IF statements to test for conditions
  • Dynamic text (types of text boxes, naming conventions, purpose)
  • Root timeline (purpose, use in code)
  • Operators (mathematical, logical, use in IF statements)