• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 32. GAMES > CREATING A MATCHING GAME

CREATING A MATCHING GAME

The basic object of a matching game is to correctly connect pairs of items on the screen. Each item is hidden, or face down, to use a card metaphor. You turn over one item, and then try to turn over its match. If you succeed, the two items are taken off the screen. If they do not match, both items are turned back over. This type of matching game is a memory game, in which you need to remember where items are located as you turn them over.

To make a game such as this, you first need a set of bitmaps to represent the items. Figure 32.1 shows a cast library with such a set. It includes 18 items. Because each is to be used in a pair of sprites, the Stage will include 36 sprites that form a six-by-six grid.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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