1 #define VERSION "2.1.1" 2 3 /* Area for setting flags to enable changes by Bryce and Neelix */ 4 5 /*#define ORIGINAL_XGALAGA */ 6 /*#define IM_A_BIG_FAT_CHEATER*/ 7 8 #ifndef ORIGINAL_XGALAGA 9 # define ENABLE_SHIP_WRAP 10 # define ENABLE_SPREAD_SHOT 1 11 # define ENABLE_MACHINE_GUN 1 12 # define DISABLE_RESET_ON_DEATH 13 # define ACTIVATED_SHIELD 14 # define SHOW_SHIELD_BAR 15 # define NO_PRIZE_WHILE_DEAD 16 #endif 17 18 #define MAXTORPS 10 19 #define MINTORPS 3 20 #define TORPSPEED 12 21 22 #define ETORPSPEED 8 23 24 #define MINSPEED 3 25 #define MAXSPEED 8 26 27 #define TORPDELAY 5 28 29 #define WINWIDTH winwidth /* was 400 */ 30 #define WINHEIGHT winheight /* was 500 */ 31 32 #define NUMSTARS 30 33 34 #define MAXALIENS 60 35 36 #define TURNSPEED 10 37 38 #define UTIMER 33333 39 40 #define BONUSSHIPSCORE 50000 41 42 #define ABS(a) /* abs(a) */ (((a) < 0) ? -(a) : (a)) 43 44 #define LEFTKEY 1 45 #define RIGHTKEY 2 46 #define FIREKEY 4 47 48 #ifndef HAVE_RANDOM 49 # ifndef HAVE_LRAND48 50 # define random() rand() 51 # else 52 # define random() lrand48() 53 # endif 54 #endif 55 56 #ifdef ORIGINAL_XGALAGA 57 #define NUMWEAPONS 3 58 #else 59 #define NUMWEAPONS 3 + ENABLE_SPREAD_SHOT + ENABLE_MACHINE_GUN 60 #endif 61 #define SINGLESHOT 0 62 #define DOUBLESHOT 1 63 #define TRIPLESHOT 2 64 #define SPREADSHOT 3 65 #define MACHINEGUN 4 66 67 #ifdef ORIGINAL_XGALAGA 68 # define PRIZECHANCE 30 69 #else 70 # define PRIZECHANCE 25 71 #endif 72 73 #define TORPCHANCE 60 74 75 #ifdef ORIGINAL_XGALAGA 76 # define SHIELDTIME 300 77 #else 78 # define STARTSHIELDS 0 79 # define MAXSHIELDS 800 80 # define SHIELDTIME 200 81 #endif 82 83 84 85 #define ALIENSHAPES 17 86