diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-04-13 07:41:31 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-04-13 07:41:31 -0400 |
commit | 51f57a9eb06cd0a4a967915ee60a323fc85fafba (patch) | |
tree | 3ac6459043382584ad4b35c78be4cb0717c8ddda /include/common.hpp | |
parent | a3f1f1bff9b58d90a2b60405ca40728cdd836fa6 (diff) | |
parent | 03130c5bcec3c885a1be005c24e192dfb57f3fe5 (diff) |
Merge branch 'master' of https://github.com/tcsullivan/gamedev
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 /** |