00001 #define CollisionHealthDecrease 0.1
00002
00003 #define CameraSpeed 0.05
00004 #define GravityValue Vector2D(0,250.0)
00005
00006 #define WHOLE_AMMUNITION_AMOUNT 300
00007 #define NUMBER_OF_LEVELS 3
00008
00009 #define TILES_DIR "data/tiles/"
00010 #define PLANES_DIR "data/planes/"
00011 #define GAMEDATA_FILE "data/data.txt"
00012 #define PATHDATA_FILE "data/path.txt"
00013 #define MAP_FILE_BASENAME "data/map"
00014 #define PLANES_THEME_FILENAME "data/planes.txt"
00015 #define TITLE_PLANE_FILENAME "data/planes/start.png"
00016 #define CREDITS_FILENAME "data/credits.txt"
00017 #define KEYS_FILENAME "data/keys.txt"
00018 #define START_SOUND_FILENAME "data/sounds/game_start.xm"
00019 #define MIDDLE_SOUND_FILENAME "data/sounds/game_middle.xm"
00020 #define FAILED_SOUND_FILENAME "data/sounds/game_failed.xm"
00021
00022 #define DefaultXResolution 640
00023 #define DefaultYResolution 480
00024 #define DefaultColorDepth 16
00025 #define DefaultFullScreen false
00026
00027 #define TileX 32
00028 #define TileY 32
00029
00030 #define MissileWidth TileX
00031 #define MissileHeight 7
00032
00033 #define MAX_STRING_LENGTH 80
00034 #define MaxObjects 20
00035
00036 #define StartPlane 0
00037 #define EndPlane 1
00038 #define GameWonPlane 2
00039 #define GameLostPlane 3
00040 #define CreditsPlane 4
00041 #define MenuPlane 5
00042
00043 #define TimeInterval (29/10)*10
00044 #define FullHealth 20
00045 #define HealthLoss 0.05
00046 #define NMissiles 7
00047 #define MaxNMissiles 20
00048 #define ArrowpackValue 6
00049
00050 #define IndicatorWidth 200
00051 #define IndicatorHeight 8
00052
00053 #define AccelerationRate 0.6
00054 #define SlowDownRate 0.003
00055 #define TimeFactor 0.001
00056
00057 #define SCAN_TYPE_TILE 0
00058 #define SCAN_TYPE_OBJECT 1
00059
00060 #define IMMUNITY_TIME 200
00061
00062
00063
00064 #define MISSION_PLAYER_DIED -1 // level lost due to player death
00065 #define MISSION_IN_PROGRESS 0
00066 #define MISSION_COMPLETE 1 // level complete
00067 #define MISSION_ABORTED 2 // level aborted
00068
00069
00070 #define MIN( a,b ) ((a)<(b)?(a):(b))
00071 #define MAX( a,b ) ((a)>(b)?(a):(b))
00072 #define CLAMP( a,i,z ) ((i)<(a)?(a):((i)>(z)?(z):(i)))