1 /* 2 * XGalaga-SDL - a SDL port of XGalaga, clone of the game Galaga 3 * Copyright (c) 1995-1998 Joe Rumsey (mrogre@mediaone.net) 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License as 7 * published by the Free Software Foundation; either version 2 of the 8 * License, or (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, but 11 * WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 * 02110-1301, USA. 19 */ 20 21 /* Area for setting flags to enable changes by Bryce and Neelix */ 22 23 #define ORIGINAL_XGALAGA 24 /*#define IM_A_BIG_FAT_CHEATER*/ 25 26 #ifndef ORIGINAL_XGALAGA 27 # define ENABLE_SHIP_WRAP 28 # define ENABLE_SPREAD_SHOT 1 29 # define ENABLE_MACHINE_GUN 1 30 # define DISABLE_RESET_ON_DEATH 31 # define ACTIVATED_SHIELD 32 # define SHOW_SHIELD_BAR 33 # define NO_PRIZE_WHILE_DEAD 34 #endif 35 36 #define MAXTORPS 10 37 #define MINTORPS 3 38 #define TORPSPEED 12 39 40 #define ETORPSPEED 8 41 42 #define MINSPEED 3 43 #define MAXSPEED 8 44 45 #define TORPDELAY 5 46 47 #ifdef __WII__ 48 #define WINTOPOV 24 /* 5% of 480, for top overscan */ 49 #define WINBOTOV 24 /* 5% of 480, for bottom overscan */ 50 #define WINWIDTH 640 51 #define WINHEIGHT (480-WINTOPOV-WINBOTOV) 52 #else 53 /* Modified slightly to better fit on 800x600 in fullscreen mode */ 54 #define WINTOPOV 0 55 #define WINBOTOV 0 56 #define WINWIDTH 468 57 #define WINHEIGHT 596 58 #endif 59 60 #define NUMSTARS 30 61 62 #define MAXALIENS 60 63 64 #define TURNSPEED 10 65 66 #define UTIMER 33333 67 68 #define BONUSSHIPSCORE 50000 69 70 #define ABS(a) /* abs(a) */ (((a) < 0) ? -(a) : (a)) 71 72 #define LEFTKEY 1 73 #define RIGHTKEY 2 74 #define FIREKEY 4 75 76 #ifndef HAVE_RANDOM 77 # ifndef HAVE_LRAND48 78 # define random() rand() 79 # else 80 # define random() lrand48() 81 # endif 82 #endif 83 84 #ifdef ORIGINAL_XGALAGA 85 #define NUMWEAPONS 3 86 #else 87 #define NUMWEAPONS 3 + ENABLE_SPREAD_SHOT + ENABLE_MACHINE_GUN 88 #endif 89 #define SINGLESHOT 0 90 #define DOUBLESHOT 1 91 #define TRIPLESHOT 2 92 #define SPREADSHOT 3 93 #define MACHINEGUN 4 94 95 #ifdef ORIGINAL_XGALAGA 96 # define PRIZECHANCE 30 97 #else 98 # define PRIZECHANCE 25 99 #endif 100 101 #define TORPCHANCE 60 102 103 #ifdef ORIGINAL_XGALAGA 104 # define SHIELDTIME 300 105 #else 106 # define STARTSHIELDS 0 107 # define MAXSHIELDS 800 108 # define SHIELDTIME 200 109 #endif 110 111 #define ALIENSHAPES 17 112 113 #define FPS 30 114 115 #define MAXFILENAME 1024 116 117 #define SCORE_FILE_NAME ".xgalaga-sdl" 118