Version: 1.0

Posted: 2007-12-19

Build Requirements: Xcode Tools 3.0 and Mac OS X version 10.5

Runtime Requirements: Mac OS X version 10.5

View Source Code:

Download Sample (“GeekGameBoard.zip”, 1.13M)
Download Sample (“GeekGameBoard.dmg”, 1.41M)



Description

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

Document Revision History

Date Notes
2007-12-19Shows how to use Core Animation for the user interface of a board or card game.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.