Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Version: 1.0

Posted: 2003-10-14

Build Requirements: N/A

Runtime Requirements: Carbon PowerPC, DrawSprocket

View Source Code:

Download Sample (“MoofWarsOld.zip”, 222.9K)
Download Sample (“MoofWarsOld.dmg”, 287.5K)



Description

MoofWars is a piece of sample code that demonstrates a few techniques to build efficient animation code on the PowerPC. This code takes advantage of DrawSprocket to provide access to page flipping when the video hardware supports it. This sample is written in C++. The main features in this application are the graphic and tile classes, which are used to draw the background and then composite sprites on top of it. The blitters within these classes are designed to move data as efficiently as possible on PowerPC -- that is, whenever possible every read and every write is done on an aligned boundary, and data is moved in as big a chunks as possible. This version runs only in 8-bit mode, although DrawSprocket should set this mode automatically. By default, debugging code is compiled into the project, so you should have MacsBug installed when you run this code. Requirements: PowerPC, DrawSprocket Keywords: game, sprockets, sprite, blit, blitter, DrawSprocket, MoofWars

Document Revision History

Date Notes
2003-10-14First Version

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.