diff options
Diffstat (limited to 'include/common.hpp')
-rw-r--r-- | include/common.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/common.hpp b/include/common.hpp index c9837dd..a62d75a 100644 --- a/include/common.hpp +++ b/include/common.hpp @@ -35,6 +35,19 @@ typedef unsigned int uint; #undef near #endif +/** + * Defines how many game ticks should occur in one second, affecting how often + * game logic is handled. + */ + +#define TICKS_PER_SEC 20 + +/** + * Defines how many milliseconds each game tick will take. + */ + +#define MSEC_PER_TICK ( 1000 / TICKS_PER_SEC ) + //#define SEGFAULT /** |