summaryrefslogtreecommitdiffstats
path: root/pacman-c++/constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/constants.h')
-rw-r--r--pacman-c++/constants.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pacman-c++/constants.h b/pacman-c++/constants.h
index d9362d8..56d29b7 100644
--- a/pacman-c++/constants.h
+++ b/pacman-c++/constants.h
@@ -1,6 +1,10 @@
1#ifndef CONSTANTS_H 1#ifndef CONSTANTS_H
2#define CONSTANTS_H 2#define CONSTANTS_H
3 3
4#define SPRITE_MARGIN 2
5#define SPRITE_WIDTH 16
6#define SPRITE_HEIGHT 16
7
4const unsigned int map_size[2] = { 20, 20 }; 8const unsigned int map_size[2] = { 20, 20 };
5const unsigned int field_size[2] = { 16, 16 }; 9const unsigned int field_size[2] = { 16, 16 };
6 10
@@ -22,6 +26,7 @@ namespace transmission
22 const field_t bonuspoint = (1 << 4); 26 const field_t bonuspoint = (1 << 4);
23 const field_t pacman = (1 << 5); 27 const field_t pacman = (1 << 5);
24 28
29 const field_t direction_none = 0;
25 const field_t direction_left = (1 << 6); 30 const field_t direction_left = (1 << 6);
26 const field_t direction_right = (1 << 7); 31 const field_t direction_right = (1 << 7);
27 const field_t direction_up = (1 << 8); 32 const field_t direction_up = (1 << 8);
@@ -29,7 +34,7 @@ namespace transmission
29 34
30 const mask_t color_mask = noColor | red | blue | green; 35 const mask_t color_mask = noColor | red | blue | green;
31 const mask_t type_mask = block | bonuspoint; 36 const mask_t type_mask = block | bonuspoint;
32 const mask_t direction_mask = direction_left | direction_right | direction_up | direction_down; 37 const mask_t direction_mask = direction_none | direction_left | direction_right | direction_up | direction_down;
33 38
34 typedef field_t** map_t; 39 typedef field_t** map_t;
35} 40}