Where to go now

Although the prototype is completed, there are a couple of things you should do to complete your training:

  1. Organize the frames to show using constants. Define four constants called something like COVERED_TILE, UNCOVERED_TILE, MINE_TILE and FLAG_TILE, then call gotoAndStop(FLAG_TILE) rather than gotoAndStop(4).
  2. Print an "end game" message when the player solves the game. You could count the uncovered tiles, and when they are FIELD_W*FIELD_H-NUMBER_OF_MINES, the game is solved.

Get Flash Game Development by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.