-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.h
More file actions
45 lines (45 loc) · 806 Bytes
/
constants.h
File metadata and controls
45 lines (45 loc) · 806 Bytes
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
/*menu*/
#define CHOSEN 0
#define NEXT 1
#define PREVIOUS 2
#define EXIT 3
/*sizes*/
#define MAP_HEIGHT 31
#define MAP_WIDTH 30
#define IMAGE_HEIGHT 25
#define IMAGE_WIDTH 25
/*speed*/
#define PACMAN_SPEED 3
#define GHOST_SPEED 3
#define PACMAN_ANIMATION_SPEED 3
#define GHOST_ANIMATION_SPEED 10
/*states*/
#define PACMAN_MAX_LIFES 3
#define NOT_CAUGHT -1
#define CAUGHT 1
#define NORMAL 0
#define FLASHING 1
#define WEAK 2
#define TELEPORTED 3
#define DEAD -1
#define TIME_TO_RECOVER 440
#define AFTER_TELEPORT 50
#define TOLERANCE 15
/*Ghosts*/
#define BLINKY 0
#define INKY 1
#define PINKY 2
#define CLYDE 3
/*map*/
#define WALL 0
#define EMPTY 1
#define PILL 2
#define POWERUP 3
#define TELEPORT 4
#define CAGE 5
/*directions*/
#define NONE 0
#define RIGHT 1
#define LEFT 2
#define UP 3
#define DOWN 4