/********************************************************/ /* Notes or comments on */ /* game */ /* */ /********************************************************/ /* Includes */ #include /* This one needed */ #include "define.h" #include "pad.h" main() { /* Initialisation */ GraphicsInitStart(); /* In graphics.c */ GraphicsInitSprite(sprite1Addr, &Sprite1); /* Initialise Sprite */ CentraliseSprite(&Sprite1); /* Put Sprite in middle of the screen */ PadInit(); /* Initiallise Pad */ /* Setup screen display, 'borrowed' from George Bain's tutorials */ GsDISPENV.screen.x = 1; GsDISPENV.screen.y = 18; GsDISPENV.screen.w = 255; GsDISPENV.screen.h = 255; RUNNING=1; /* Set variable to 1, make sure game will run */ while(RUNNING) { GraphicsLoopStart(); /* In graphics.c */ GsSortFastSprite(&Sprite1,&OrderingTable[ActiveBuff],0); /* Put sprite into Ordering Table, and therefore onto screen */ GraphicsLoopEnd(); /* In graphics.c */ UserManipulation(); /* Read pad values, and do something with 'em */ CheckSpritePosition(&Sprite1); /* Stop sprite from exiting viewing area */ } }