[go: up one dir, main page]

File: common.h

package info (click to toggle)
zatacka 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,924 kB
  • sloc: ansic: 3,456; sh: 1,250; makefile: 34
file content (41 lines) | stat: -rwxr-xr-x 1,222 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef COMMON_H
#define COMMON_H

#define STRBUF  32

/* DEFAULT WINDOW DIMENSIONS */
#define DEFAULT_WINDOW_W    800
#define DEFAULT_WINDOW_H    600
#define SCREEN_BPP          32

/* PLAYERS */
#define MIN_PLAYERS         2   /* Minimum number of players */
#define MAX_PLAYERS         8   /* Maximum number of players */
#define DEFAULT_N_PLAYERS   2   /* Default number of players */

/* SPAWNING */
#define START_ROUND_WAIT    1500 /* Milliseconds until the game starts */
#define SPAWN_SPACE_MIN     100  /* Minimal spawn distance from screen edges */
#define ZATA_SPAWN_SPACING  20   /* Minimal spawn distance between zatas */
#define TRY_SPAWN_THIS_HARD 40   /* Try this many times to make a fit */

/* OUTPUT LEVEL */
#define O_SILENT    0   /* Be absolutely quiet */
#define O_NORMAL    1   /* Standard */
#define O_VERBOSE   2   /* Important events (good for game logs, maybe?) */
#define O_DEBUG     3   /* Debug mode */

#ifdef SILENT
static const int olvl = O_SILENT;
#elif VERBOSE
static const int olvl = O_VERBOSE;
#elif DEBUG
static const int olvl = O_DEBUG;
#else
static const int olvl = O_NORMAL;
#endif

void refreshGameScreen(void);
void clearRecents(int fromX, int toX, int fromY, int toY);

#endif