-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.h
57 lines (48 loc) · 1.1 KB
/
game.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
45
46
47
48
49
50
51
52
53
54
55
56
57
#define W 13
#define H 9
#define MX H*W
#define IS 31
#define YOU 0
#define WIN 1
#define STOP 2
#define PUSH 3
#define WATER 5
/*
* 1. 2 maps: 7 + transparency layers bitmap, and code
* 2. your object is always ontop
* 3. code is always push
* 4. objects are driven by code
*/
#define EM 0
// layers
#define PL 1
#define RK 2
#define WL 3
#define FG 4
// noun
#define BA 9
#define RO 10
#define WA 11
#define FL 12
// adj/verb
#define YO 16
#define WI 17
#define ST 18
#define PU 19
unsigned char l1[] = {
13, 9, // W,H
// 01 02 03 04 05 06 07 08 09 10 11 12 13
BA, IS, YO, EM, EM, EM, EM, EM, EM, EM, FL, IS, WI,
EM, EM, EM, EM, EM, EM, EM, EM, EM, EM, EM, EM, EM,
WL, WL, WL, WL, WL, WL, WL, WL, WL, WL, WL, WL, WL,
EM, EM, EM, EM, EM, EM, RK, EM, EM, EM, EM, EM, EM,
EM, PL, EM, EM, EM, EM, RK, EM, EM, EM, EM, FG, EM,
EM, EM, EM, EM, EM, EM, RK, EM, EM, EM, EM, EM, EM,
WL, WL, WL, WL, WL, WL, WL, WL, WL, WL, WL, WL, WL,
EM, EM, EM, EM, EM, EM, EM, EM, EM, EM, EM, EM, EM,
WA, IS, ST, EM, EM, EM, EM, EM, EM, EM, RO, IS, PU,
};
unsigned char* levels[] = {
l1,
};
#define ML 1