3. Basic Game Framework: A Matching Game


Placing Interactive Elements

Game Play

Encapsulating the Game

Adding Scoring and a Clock

Adding Game Effects

Modifying the Game

Source Files



To build our first game, I’ve chosen one of the most popular games you can find on the Web and in interactive and educational software: a matching game.

Matching games are simple memory games played in the physical world using a simple deck of cards with pictures on them. The idea is to place pairs of cards face down in a random arrangement. Then, try to find matches by turning over two cards at a time. When ...

Get ActionScript 3.0 Game Programming University, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.