summaryrefslogtreecommitdiff
path: root/src/global.h
blob: 1634c8949753c8f51dea8ddbeea8243b1bbb5911 (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef __GLOBAL_H__
#define __GLOBAL_H__

#define Dir_0     0
#define Dir_90   1
#define Dir_180 2
#define Dir_270 3

//direction of brick

#define Down 0
#define Left   -1
#define Right  1
#define Fast    30
#define Rot     20
#define Swap  10

//type of movement

#define False 0
#define True  1

//for bools

extern char* pScreen;
//pointer to the 3 graybuffers

extern char right;
extern char left;
//can move?

extern char changemap[21][10];
extern char globalmap  [20][10];
//the two brickmaps: globalmap is the visible one

extern char block;
//block type
extern int xpos, ypos;
extern char dir;
//position and direction of brick

extern char level;
//current level

extern unsigned int points;
//points

extern char nextdir;
//the direction for the next round

extern char nextblock;
//the next block

extern char hold;
//the stored brick

#endif