1 /* 2 * Triplane Classic - a side-scrolling dogfighting game. 3 * Copyright (C) 1996,1997,2009 Dodekaedron Software Creations Oy 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU 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, see <http://www.gnu.org/licenses/>. 17 * 18 * tjt@users.sourceforge.net 19 */ 20 21 #ifndef CONSTANTS_H 22 #define CONSTANTS_H 23 24 #define ITGUN_SHOT_COLOR 32 25 #define ITGUN_SHOT_SPEED 8000 26 #define ITGUN_SHOT_GRAVITY 500 27 #define MAX_ITGUN_SHOTS 20 28 #define ITGUN_AGE_VARIETY 10 29 #define ITGUN_BASE_AGE 32 30 #define ITGUN_SHOT_RATE 15 31 #define ITEXPLOSION_FRAMES 9 // 5 32 33 #define AA_MG_SHOT_SPEED 4800 34 #define MAX_AA_GUNS 16 35 36 #define INFANT_SHOTS_SPEED 4000 37 #define INFANTRY_AIM_RANDOM 40 38 #define MAX_INFANTRY 100 39 40 #define MAX_FLAGS 12 41 #define FLAGS_SPEED 2 42 43 #define BOMB_GRAVITY 2000 44 #define MIN_BOMB_PARTS 25 //25 45 #define MAX_BOMB_PARTS 50 //50 46 #define MAX_BOMBS 25 //25 47 #define MAX_STRUCTURES 100 48 49 #define NUMBER_OF_SCENES 15 50 51 #define MAX_SHOTS 500 52 #define SHOTS_SPEED 4000 53 #define SHOTS_RATE 3 54 #define SHOTS_GRAVITY 400 55 #define SHOTS_COLOR 8 56 #define SHOTS_RANGE 55 57 58 #define MAX_FLYING_OBJECTS 200 59 #define SMOKE_FRAMES 17 60 #define WAVE1_FRAMES 15 61 #define WAVE2_FRAMES 5 62 #define EXPLOX_FRAMES 6 63 #define EXPLOX_RANDOM 12 64 #define EXPLOX_CONST 10 65 #define EXPLOX_VARIETY 25*256 66 #define EXPLOX_PHASE_DIFF 7 67 #define SMOKE_SPEED -3500 68 #define NUMBER_OF_BITES 7 69 #define PARTS_SPEED 270000 70 #define FOBJECTS_GRAVITY 3000 // 1600 71 #define NUMBER_OF_EXPLOSION_PARTS 30 // 50 72 #define FOBJECTS_DAMAGE 8 73 #define NUMBER_OF_FLAMES 6 74 #define MAX_FLAMES 20 75 #define FLAME_AGE 125 76 77 #define FOBJECTS_SMOKE 0 78 #define FOBJECTS_PARTS 1 79 #define FOBJECTS_EXPLOX 2 80 #define FOBJECTS_ITEXPLOSION 3 81 #define FOBJECTS_WAVE1 4 82 #define FOBJECTS_WAVE2 5 83 #define FOBJECTS_FLAME 6 84 #define FOBJECTS_RIFLE 7 85 #define FOBJECTS_SSMOKE 8 86 87 #define HIT_ANGLE 10 88 #define TAIL_HIT_ANGLE 20 89 #define PLANE_MODIFICATION 5 90 #define PLANE_AIRFIELD_POSITION 15 91 #define STOP_SPEED_LIMIT 16 92 93 #define RED_MANOVER 475 94 #define BLUE_MANOVER 425 95 #define GREEN_MANOVER 450 96 #define YELLOW_MANOVER 500 97 #define GREY_MANOVER 500 98 #define BLACK_MANOVER 500 99 100 #define RED_POWER 80 101 #define BLUE_POWER 135 102 #define GREEN_POWER 80 103 #define YELLOW_POWER 69 104 #define GREY_POWER 120 105 #define BLACK_POWER 135 106 107 #define SHOT_AT_RANGE 200 108 #define SHOT_AT_ANGLE 30 109 #define AVOID_TERRAIN_FRAMES 24 110 #define AI_GOING_UP_LIMIT 25*256 111 #define AI_ANGLE_MARGINAL 10*256 112 #define AI_ATTACK_DISTANCE 200 113 #define AIM_GIVEUPFIGHT_DISTANCE 350 114 #define AI_STALL_WARNING 1400 115 #define AI_STALL_WARNING2 2200 116 117 #define AIM_NOMISSION -1 118 #define AIM_TAKEOFF 0 119 #define AIM_LAND 1 120 #define AIM_IMMELMAN 2 121 #define AIM_SPLITS 3 122 #define AIM_FLY_LEVEL 4 123 #define AIM_CHASE_PLANE 5 124 #define AIM_BOMB_STRUCTURE 6 125 #define AIM_EVADE_TERRAIN 7 126 #define AIM_GAIN_SPEED 8 127 #define AIM_HEAD_FOR_HOME 9 128 129 #define GERMANY 0 130 #define FINLAND 1 131 #define ENGLAND 2 132 #define JAPAN 3 133 134 #define STATUS_SPEED 24 135 136 #endif 137