diff options
Diffstat (limited to 'pacman-c++/constants.h')
| -rw-r--r-- | pacman-c++/constants.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pacman-c++/constants.h b/pacman-c++/constants.h index 46791be..e009d40 100644 --- a/pacman-c++/constants.h +++ b/pacman-c++/constants.h | |||
| @@ -6,7 +6,7 @@ namespace Constants { | |||
| 6 | { | 6 | { |
| 7 | const unsigned int width, height; | 7 | const unsigned int width, height; |
| 8 | } field_size = { 16, 16 }, | 8 | } field_size = { 16, 16 }, |
| 9 | map_size = { 20, 20 }, | 9 | map_size = { 30, 30 }, |
| 10 | map_size_pixel = { field_size.width * map_size.width, | 10 | map_size_pixel = { field_size.width * map_size.width, |
| 11 | field_size.height * map_size.height}; | 11 | field_size.height * map_size.height}; |
| 12 | const unsigned int sprite_margin = 2; | 12 | const unsigned int sprite_margin = 2; |
| @@ -30,15 +30,15 @@ namespace Transmission | |||
| 30 | typedef unsigned int field_t; | 30 | typedef unsigned int field_t; |
| 31 | typedef unsigned int mask_t; | 31 | typedef unsigned int mask_t; |
| 32 | 32 | ||
| 33 | const field_t block = (1 << 3); | 33 | const field_t block = (1 << 3); |
| 34 | const field_t bonuspoint = (1 << 4); | 34 | const field_t bonuspoint = (1 << 4); |
| 35 | const field_t pacman = (1 << 5); | 35 | const field_t pacman = (1 << 5); |
| 36 | 36 | ||
| 37 | const field_t direction_none = 0; | 37 | const field_t direction_none = 0; |
| 38 | const field_t direction_left = (1 << 6); | 38 | const field_t direction_left = (1 << 6); |
| 39 | const field_t direction_right = (1 << 7); | 39 | const field_t direction_right = (1 << 7); |
| 40 | const field_t direction_up = (1 << 8); | 40 | const field_t direction_up = (1 << 8); |
| 41 | const field_t direction_down = (1 << 9); | 41 | const field_t direction_down = (1 << 9); |
| 42 | 42 | ||
| 43 | const mask_t color_mask = Color::none | Color::red | Color::blue | Color::green; | 43 | const mask_t color_mask = Color::none | Color::red | Color::blue | Color::green; |
| 44 | const mask_t type_mask = block | bonuspoint; | 44 | const mask_t type_mask = block | bonuspoint; |
