-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.h
49 lines (44 loc) · 1007 Bytes
/
constants.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
#ifndef CONSTANTS_H
#define CONSTANTS_H
enum
{
CHAR_SIZE = 8,
SCREEN_WIDTH = 400,
SCREEN_HEIGHT = 300,
SCREEN_WIDTH_CHAR = SCREEN_WIDTH / CHAR_SIZE,
SCREEN_HEIGHT_CHAR = SCREEN_HEIGHT / CHAR_SIZE
};
enum
{
CHAR_BACKGROUND=0,
CHAR_TRANSPARENT,
CHAR_TOPBAR,
CHAR_LINE_VERT=128, // Start after fonts
CHAR_LINE_HORIZ,
CHAR_LINE_VERT_MARKED,
CHAR_LINE_HORIZ_MARKED,
CHAR_CORNER_TOP_LEFT,
CHAR_CORNER_TOP_RIGHT,
CHAR_CORNER_TOP_LEFT_MARKED,
CHAR_CORNER_TOP_RIGHT_MARKED,
CHAR_CORNER_BOTTOM_LEFT,
CHAR_CORNER_BOTTOM_RIGHT,
CHAR_CORNER_BOTTOM_LEFT_MARKED,
CHAR_CORNER_BOTTOM_RIGHT_MARKED,
CHAR_TEE_VERT_LEFT,
CHAR_TEE_VERT_RIGHT,
CHAR_TEE_VERT_LEFT_MARKED,
CHAR_TEE_VERT_RIGHT_MARKED,
CHAR_TEE_HORIZ_TOP,
CHAR_TEE_HORIZ_TOP_MARKED,
CHAR_CROSS,
CHAR_CROSS_MARKED,
CHAR_TEE_HORIZ_BOTTOM,
CHAR_TEE_HORIZ_BOTTOM_MARKED
};
enum
{
SPRITE_PLAYER=0,
SPRITE_ENEMY=1
};
#endif // CONSTANTS_H