X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=config.h;h=62ba2532bf0bf9e05621f7a0aef8858f552771de;hp=63d143b543006ef22537761c7c3b4d41751fa747;hb=9f0bc6ef9620912ca42eca9c3f4b6ca10dba35ce;hpb=fac9f096e69b8e1594a90796ec8dcf222fc1b6e3 diff --git a/config.h b/config.h index 63d143b..62ba253 100644 --- a/config.h +++ b/config.h @@ -1,11 +1,22 @@ +#ifndef VOR_CONFIG_H +#define VOR_CONFIG_H + +#define debug(x) if(DEBUG) { x; } + #define VERSION "0.1" +#define DATA_PREFIX "/usr/share/vor" + +// Speed of the game. New players may like to try 3/4 or 2/3 speed. +#define GAMESPEED 1.00 +// #define GAMESPEED (3.0/4.0) +// #define GAMESPEED (2.0/3.0) // screen size #define XSIZE 640 #define YSIZE 480 // number of rock image files. -#define NROCKS 6 +#define NROCKS 50 // image file containing font for score stuff. #define BIG_FONT_FILE "fonts/score.png" @@ -18,4 +29,24 @@ #define MAXSPACEDOTS 2000 #define W 100 #define M 255 -#define START_RAD_SQ 40000 // radius^2 (pixels) which will be cleared of rocks when you die +#define BLAST_RADIUS 300 // radius^2 (pixels) which will be cleared of rocks when you die +#define DEAD_PAUSE_LENGTH 40.0 + +#define MAX_PATH_LEN 1024 + +#ifndef true +#define true 1 +#endif + +#ifndef false +#define false 0 +#endif + +#ifndef NULL +#define NULL 0 +#endif + +#define CONDERROR(a) if((a)) {initerror = strdup(SDL_GetError());return 1;} +#define NULLERROR(a) CONDERROR((a) == NULL) + +#endif // VOR_CONFIG_H