From 836f56a40fa4a2b8e68c23b2c299e50fefe0c15d Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Sun, 12 Mar 2017 11:07:22 -0500 Subject: -renamed constants to fit new datatypes -reimplemented corpses -implemented hunger and starving (if creature is starving they will eat corpses and will take damage) -removed sides data from dna (think it is irrelavent) -removed data from dna that is not used for plants --- inc/constants.hpp | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) (limited to 'inc/constants.hpp') diff --git a/inc/constants.hpp b/inc/constants.hpp index 49b7678..76a40c1 100644 --- a/inc/constants.hpp +++ b/inc/constants.hpp @@ -4,36 +4,43 @@ // General const int HERBAVORES = 100; const int CARNIVORES = 50;; -const int PLANTS = 5000; const int MINIMUM_PLANTS = 4000; +const int PLANTS = 5000; const int WINDOW_X = 1000; const int WINDOW_Y = 1000; +const float BOUNDS = 30; // Types -const int PLANT_TYPE = 1; -const int HERBAVORE_TYPE = 2; -const int CARNIVORE_TYPE = 3; - -// Creatures -const int CREATURE_MAX_HEALTH = 1000; -const int CREATURE_BEST_SENSE = 1.5; -const int CREATURE_BITE = 10; -const int CREATURE_EXP_PREG_TIME = 100; +const int HERBAVORE_TYPE = 1; +const int CARNIVORE_TYPE = 2; +const int PLANT_TYPE = 3; +const int CORPSE_TYPE = 4; + +// Creature stats +const int CREATURE_MAX_HEALTH = 100; +const int CREATURE_BEST_SENSE = 2; +const int CREATURE_BITE = 5; +const int CREATURE_EXP_PREG_TIME = 1000; const int CREATURE_EXP_AGE = 10000; -const float CREATURE_SPEED = .1; +const int CREATURE_HUNGRY_AMOUNT = 50; +const int CREATURE_STARVE_AMOUNT = 90; +const float CREATURE_SPEED = .05; const float CREATURE_REACH = .1; const float CREATURE_MUTATION_PERCENT = .25; const float CREATURE_MUTATION_CHANCE = .05; -// Resource -const int RESOURCE_MAX_HEALTH = 200; -const int RESOURCE_GROW_AMOUNT = 1; +// Plant Stats +const int PLANT_MAX_HEALTH = 200; +const int PLANT_GROW_AMOUNT = 1; + +// Corpse Stats +const int CORPSE_MAX_HEALTH = 400; +const int CORPSE_DECAY_AMOUNT = -1; // Opengl const int NUM_SHADERS = 3; const int NUM_UNIFORMS = 3; -const float CREATURE_SIDES = 4; -const float RESOURCE_SIDES = 10; +const float SIDES = 5; // Quadtree const int MAX_OBJECTS = 5; -- cgit v1.2.3