JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added constant MAX_DUST_DEPTHS.
[vor.git] / config.h
1 #ifndef VOR_CONFIG_H
2 #define VOR_CONFIG_H
3
4 #define debug(x) if(DEBUG) { x; }
5
6 #define VERSION "0.1"
7 #define DATA_PREFIX "/usr/share/vor"
8
9 // Speed of the game.  New players may like to try 3/4 or 2/3 speed.
10 #define GAMESPEED 1.00
11 // #define GAMESPEED (3.0/4.0)
12 // #define GAMESPEED (2.0/3.0)
13
14 // screen size
15 #define XSIZE 640
16 #define YSIZE 480
17
18 // number of rock image files.
19 #define NROCKS 50
20 // image file containing font for score stuff.
21 #define BIG_FONT_FILE "fonts/score.png"
22
23 #define MAXROCKS 120 // MAX Rocks
24 #define MAXROCKHEIGHT 100
25 #define ROCKRATE 2
26 #define MAXBLACKPOINTS 500
27 #define MAXENGINEDOTS 5000
28 #define MAXBANGDOTS 50000
29 #define MAXSPACEDOTS 2000
30 #define MAXDUSTDEPTH 2
31 #define W 100
32 #define M 255
33 #define BLAST_RADIUS 300 // radius^2 (pixels) which will be cleared of rocks when you die
34 #define DEAD_PAUSE_LENGTH 40.0
35
36 #define MAX_PATH_LEN 1024
37
38 #ifndef true
39 #define true 1
40 #endif
41
42 #ifndef false
43 #define false 0
44 #endif
45
46 #ifndef NULL
47 #define NULL 0
48 #endif
49
50 #define CONDERROR(a) if((a)) {initerror = strdup(SDL_GetError());return 1;}
51 #define NULLERROR(a) CONDERROR((a) == NULL)
52
53 #endif // VOR_CONFIG_H