diff options
author | tom <tom@apollo> | 2017-01-11 02:19:07 -0600 |
---|---|---|
committer | tom <tom@apollo> | 2017-01-11 02:19:07 -0600 |
commit | b97a54b8acd113e99871fdb0f683e27e0912bf42 (patch) | |
tree | 0c32320f225569da513a505d73dd72a506f08c95 /inc/constants.hpp | |
parent | f6f6d81c5634f659693914b7b74efcdd39ba5d4f (diff) |
-removed all magic numbers and placed them in a constants header
-removed unused libraries and redid all header files
Diffstat (limited to 'inc/constants.hpp')
-rw-r--r-- | inc/constants.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/inc/constants.hpp b/inc/constants.hpp new file mode 100644 index 0000000..2a5b8fb --- /dev/null +++ b/inc/constants.hpp @@ -0,0 +1,19 @@ +#ifndef constants_h +#define constants_h + +const int CREATURES = 10; +const int RESOURCES = 100; +const int WINDOW_X = 1080; +const int WINDOW_Y = 640; + +const int CREATURE_START_HEALTH = 500; +const int CREATURE_MAX_HEALTH = 1000; +const int CREATURE_BEST_SENSE = 100; +const int CREATURE_SPEED = 1; +const int CREATURE_REACH = 5; +const int CREATURE_SIZE = 10; + +const int RESOURCE_SIZE = 5; +const int RESOURCE_AMOUNT = 100; + +#endif |