2009-08-08 19:45:49 +00:00
|
|
|
#ifndef GAME_H
|
|
|
|
#define GAME_H
|
|
|
|
|
|
|
|
#define FRACTION 9
|
|
|
|
#define SPEEDDELTA (1<<(FRACTION-1))
|
|
|
|
#define SPEEDMAX (10<<FRACTION)
|
|
|
|
#define SPEEDSTART (6<<FRACTION)
|
|
|
|
#define SPEEDTURTLE (3<<FRACTION)
|
|
|
|
#define SPEEDTURTLE_TIMEOUT 250
|
|
|
|
|
|
|
|
#define TEMPNODES 2
|
|
|
|
|
2009-08-09 17:10:35 +00:00
|
|
|
typedef struct GameOptions GameOptions;
|
|
|
|
struct GameOptions {
|
|
|
|
unsigned char density, flames, bombs, generosity;
|
|
|
|
};
|
|
|
|
|
2009-08-08 19:45:49 +00:00
|
|
|
void run_single_player(void);
|
|
|
|
void run_network_game(void);
|
|
|
|
|
2009-08-09 17:10:35 +00:00
|
|
|
void set_game_options(GameOptions *options);
|
2009-08-08 19:45:49 +00:00
|
|
|
|
|
|
|
extern char playername[16];
|
|
|
|
|
|
|
|
extern solid background,backgroundoriginal;
|
|
|
|
|
|
|
|
#endif
|