/********************************************************/ /* Lines */ /* Rikki Prince 1999 */ /* */ /********************************************************/ /* Includes */ #include /* This one needed */ #include "define.h" #include "pad.h" main() { /* Initialisation */ GraphicsInitStart(); /* In graphics.c */ /* Init all games graphics here eg. Sprites, Lines... */ InitGameSpecific(); 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 */ GAMEPOSITION=TITLESCREEN; /* Show title screen at start */ while(RUNNING) { GraphicsLoopStart(); /* In graphics.c */ /* Put any grpahics into OT */ DisplayGameSpecific(); GraphicsLoopEnd(); /* In graphics.c */ UserManipulation(); /* Read pad values, and do something with 'em */ GameUpdate(); } }