summaryrefslogtreecommitdiff
path: root/inc/constants.hpp
diff options
context:
space:
mode:
authormajortom6 <tombarrett@siu.edu>2017-02-26 11:14:31 -0600
committerTom Barrett <tombarrett@siu.edu>2017-03-07 13:23:42 -0600
commit7394b069537ed7a490a343381d62862eb22abdcf (patch)
treec8bff4f88cf962ec4148a2e133bf959035feedb7 /inc/constants.hpp
parente54170cfb8c0fb99ecdc3b1e57e832dec58ee76e (diff)
-REMOVED ENTITY, RESOURCE, AND CREATURE !
-replaced them all with one class, organism (always subject to change) -the dna type now is what differs creatures and resources -removed dead constants -may be a rogue segfault -also weird artifacts start showing if running long
Diffstat (limited to 'inc/constants.hpp')
-rw-r--r--inc/constants.hpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/inc/constants.hpp b/inc/constants.hpp
index dc0ddec..ce4c3ff 100644
--- a/inc/constants.hpp
+++ b/inc/constants.hpp
@@ -14,28 +14,23 @@ const int RESOURCE_TYPE = 2;
// Creatures
const int CREATURE_MAX_HEALTH = 1000;
-const int CREATURE_REACH = 1;
-const int CREATURE_BEST_SENSE = 1;
+const int CREATURE_BEST_SENSE = 2;
const int CREATURE_BITE = 10;
-const int CREATURE_AMOUNT_TO_GROW = 50;
const int CREATURE_EXP_PREG_TIME = 100;
-const int CREATURE_EXP_AGE = 1000000;
-const int CREATURE_SIZE_MAX = 10;
+const int CREATURE_EXP_AGE = 1000;
const float CREATURE_SPEED = .1;
const float CREATURE_MUTATION_PERCENT = .25;
const float CREATURE_MUTATION_CHANCE = .05;
+const float CREATURE_REACH = .1;
// Resource
-const int RESOURCE_SIZE_START = 1;
-const int RESOURCE_SIZE_MAX = 4;
-const int RESOURCE_AMOUNT_START = 100;
-const int RESOURCE_AMOUNT_MAX = 200;
-const int RESOURCE_GROW = 1;
+const int RESOURCE_MAX_HEALTH = 200;
+const int RESOURCE_GROW_AMOUNT = 1;
// Opengl
const int NUM_SHADERS = 3;
const int NUM_UNIFORMS = 3;
-const float CREATURE_SIDES = 4.0;
+const float CREATURE_SIDES = 4;
const float RESOURCE_SIDES = 10;
// Quadtree