From b97a54b8acd113e99871fdb0f683e27e0912bf42 Mon Sep 17 00:00:00 2001 From: tom Date: Wed, 11 Jan 2017 02:19:07 -0600 Subject: -removed all magic numbers and placed them in a constants header -removed unused libraries and redid all header files --- inc/constants.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 inc/constants.hpp (limited to 'inc/constants.hpp') 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 -- cgit v1.2.3