From da6ef5d87e1cafc0a7de658dc65a9a4578e28f6c Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 6 Apr 2011 23:29:31 +0200 Subject: - make a few optimizations to actor sprites - make actor move via keyboard! --- pacman-c++/constants.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'pacman-c++/constants.h') 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 @@ namespace Constants { const struct { - const unsigned int width, height; - } field_size = { 16, 16 }, - map_size = { 30, 30 }, - map_size_pixel = { field_size.width * map_size.width, - field_size.height * map_size.height}; + const unsigned int width; + const unsigned int height; + } + field_size = { 16, 16 }, + map_size = { 30, 30 }, + map_size_pixel = { field_size.width * map_size.width, + field_size.height * map_size.height }; const unsigned int sprite_margin = 2; const unsigned int sprite_offset = 20; + const unsigned int tick = 250; // ms } namespace Color -- cgit v1.2.3