GeekGameBoard

Last Revision:
Version 1.0, 2007-12-19
Shows how to use Core Animation for the user interface of a board or card game.
Build Requirements:
Xcode Tools 3.0 and Mac OS X version 10.5
Runtime Requirements:
Mac OS X version 10.5

GeekGameBoard is an example of using Core Animation to present the user interface of a board or card game. It implements a small framework for implementing such games, with domain-specific classes like "Grid" and "Piece", and examples of several game definitions built on top of the framework.

Some of the generally-useful Core Animation techniques illustrated are:

• Hit testing

• Dragging CALayers with the mouse

• Loading images from files and setting them as layer contents

• 3D "card-flip" animations