summaryrefslogtreecommitdiff
path: root/inc/constants.hpp
diff options
context:
space:
mode:
authormajortom6 <tombarrett@siu.edu>2017-02-26 07:07:11 -0600
committerTom Barrett <tombarrett@siu.edu>2017-03-07 13:23:42 -0600
commit72b40aec2addc7b28170ba9364bc0429149b3299 (patch)
treec84358c619784a418adb4d0d71c6e91ccddc7f89 /inc/constants.hpp
parentc6d10c3d73e99043a29897eecf59656a18db989d (diff)
-added more detailed mutation function, eventually a normal distrobution will be implemented
-added roll function, which takes a float ie (.15) and returns a true that percent of the time
Diffstat (limited to 'inc/constants.hpp')
-rw-r--r--inc/constants.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/constants.hpp b/inc/constants.hpp
index 518f2ac..6cb2982 100644
--- a/inc/constants.hpp
+++ b/inc/constants.hpp
@@ -22,6 +22,8 @@ const int CREATURE_EXP_PREG_TIME = 100;
const int CREATURE_EXP_AGE = 1000000;
const int CREATURE_SIZE_MAX = 10;
const float CREATURE_SPEED = .1;
+const float CREATURE_MUTATION_PERCENT = .25;
+const float CREATURE_MUTATION_CHANCE = .05;
// Resource
const int RESOURCE_SIZE_START = 1;
@@ -37,8 +39,8 @@ const float CREATURE_SIDES = 4.0;
const float RESOURCE_SIDES = 10;
// Quadtree
-const int MAX_OBJECTS = 5;
-const int MAX_LEVELS = 6;
+const int MAX_OBJECTS = 10;
+const int MAX_LEVELS = 10;
// Camera
const float MOVE_AMOUNT = .2;