MoofWarsOld

Last Revision:
Version 1.0, 2003-10-14
First Version
Build Requirements:
Runtime Requirements:
Carbon PowerPC, DrawSprocket

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