-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
executable file
·44 lines (40 loc) · 1.07 KB
/
main.h
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
42
43
44
#define MAX_GRID 80
typedef struct t_grid {
int status;
float color[4];
} Grid;
typedef struct t_treasure {
int status; //whether it has spawned
int pos[2]; //position (x,y)
int maxCount; //max # of treasures to spawn
int maxRate; //max treasure spawn rate
int increase; //how many treasures should spawn next
int type; // coin = 1, jewel = 2
int count; //# of treasures generated
} Treasure;
extern int xres;
extern int yres;
extern Grid grid[MAX_GRID][MAX_GRID];
extern Treasure treasure[];
extern int done;
extern int gridDim;
extern int boardDim;
extern int gameover;
extern int winner;
extern int score;
extern int credit;
extern void init(void);
extern void resetGame();
extern int level;
extern int treasureScore;
extern int soundFlag;
extern int start;
extern int timestart;
extern int soundNum;
extern int gamemodeSelected;
extern int gameMode;
extern void prwall(void);
//extern void checkResize(XEvent *e);
//extern void checkMouse(XEvent *e);
//extern void checkKeys(XEvent *e);
//extern int done;