/******************************* Sandstorm MAIN.H ********************************/ /**** DEFINES ****/ // game related // INTERLACED mode flag //#define INTER //resolution #ifdef INTER #define WIDTH_NTSC (640) //for NTSC TVs #define HEIGHT_NTSC (480) //for NTSC TVs #define WIDTH_PAL (640) //for PAL TVs #define HEIGHT_PAL (512) //for PAL TVs #endif #ifndef INTER #define WIDTH_NTSC (320) //for NTSC TVs #define HEIGHT_NTSC (240) //for NTSC TVs #define WIDTH_PAL (320) //for PAL TVs #define HEIGHT_PAL (256) //for PAL TVs #endif //graphics related #define OTLENGTH (8) //length of OT (8) #define PROJ (1<<9) //projection distance #define PACKETMAX (10000*24) #define NUMCARS (3) //num of cars including yourself #define BGWIDTH (320) //total width of both sky sprites #define MAXITEMS (5) //max. num. of items at a given time #define BULL_SPEED (35) //bullet speed when fired #define MISSILE_SPEED (30) //missile speed when fired #define BULL_GAP (10) //firing gap to slow down firing pace #define FREEZETIME (350) //amount of time CPU players "freeze" when time item is used #define SMOOTHPAUSE (10) //smoothes item display in ChangeItem() #define SLIDESPEED (5) //how fast the vehicle slides when hit #define FIRE_DAMAGE (6) //damage a fire missile causes #define HOMING_DAMAGE (4) //homing missile damage #define POWER_DAMAGE (8) //power damage #define BULLET_DAMAGE (1) #define RICO_DAMAGE (5) #define MINE_DAMAGE (10) #define MINE_SLIDE (10) //how fast the vehicle slides when hit with a mine #define HEALTH_PLUS (40) //amount of life bar width gained from health item #define COLL_DAMAGE (3) //damage when hit by another car #define MVOL (127) //main volume level #define SVOL (127) //seq volume level #define DFILE (2) // sound related files to load from CD //memory addresses #define VH_ADDR 0x80090000 /* 60448 */ #define VB_ADDR 0x8009ec20 /* 401360 */ #define SEQ_ONE_ADDR 0x80100bf0 /* 48508 */ #define SAND_DATA 0x8010c970 /* 11336 */ #define SANDTEX_DATA 0x8010f5c0 /* 8272 */ #define BIRTCH_DATA 0x80111610 /* 13382 */ #define LEFTSKY_DATA 0x80114a60 /* 38944 */ #define RIGHTSKY_DATA 0x8011e280 /* 38944 */ #define TRUCKW_DATA 0x80127aa0 /* 3004 */ #define TRUCKR_DATA 0x80128660 /* 3004 */ #define TRUCKG_DATA 0x80129220 /* 3004 */ #define PYRAMID_DATA 0x80129de0 /* 1480 */ #define SUN2_DATA 0x8012a3b0 /* 2832 */ #define MEGA_DATA 0x8012aec0 /* 17872 */ #define ONSCREEN_DATA 0x8012f490 /* 13540 */ #define POINTER_DATA 0x80132980 /* 1456 */ #define POWER_M_DATA 0x80132f30 /* 408 */ #define HOMING_M_DATA 0x801330d0 /* 408 */ #define FIRE_M_DATA 0x80133270 /* 408 */ /**** GLOBALS ****/ //graphics related extern int out_buf; extern GsOT wot[2], wot2[2]; //OT headers extern GsOT_TAG ot[2][1<