diff options
Diffstat (limited to 'pacman-c++/constants.h')
| -rw-r--r-- | pacman-c++/constants.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pacman-c++/constants.h b/pacman-c++/constants.h index 019ac14..f0e7903 100644 --- a/pacman-c++/constants.h +++ b/pacman-c++/constants.h | |||
| @@ -4,13 +4,16 @@ | |||
| 4 | namespace Constants { | 4 | namespace Constants { |
| 5 | const struct | 5 | const struct |
| 6 | { | 6 | { |
| 7 | const unsigned int width, height; | 7 | const unsigned int width; |
| 8 | } field_size = { 16, 16 }, | 8 | const unsigned int height; |
| 9 | map_size = { 30, 30 }, | 9 | } |
| 10 | map_size_pixel = { field_size.width * map_size.width, | 10 | field_size = { 16, 16 }, |
| 11 | field_size.height * map_size.height}; | 11 | map_size = { 30, 30 }, |
| 12 | map_size_pixel = { field_size.width * map_size.width, | ||
| 13 | field_size.height * map_size.height }; | ||
| 12 | const unsigned int sprite_margin = 2; | 14 | const unsigned int sprite_margin = 2; |
| 13 | const unsigned int sprite_offset = 20; | 15 | const unsigned int sprite_offset = 20; |
| 16 | const unsigned int tick = 250; // ms | ||
| 14 | } | 17 | } |
| 15 | 18 | ||
| 16 | namespace Color | 19 | namespace Color |
