02 May 2012
Creatures is a predator/prey simulation built in the Processing framework. The simualation features a landscape rich with slow-growing food sources (in green), and dotted with threats (in red). The landscape is populated with herds of roaming creatures. The creatures forage for food, avoid danger, remember, reproduce, age, and die.
Each creature makes decisions depending on its location in the landscape. If the creature is near an unknown object, it will move towards it to examine it more closely. It will then feed or flee depending on what that object is - food, or a threat. When the creature encounters threats and food sources, it retains a memory of them, and is less cautious on subsequent encounters.
If the creature is near a potential mate a fitness algorithm will decide whether or not the two creatures can reproduce. When the creatures do reproduce, a new creature is born, and the baby creature inherits some characteristics from both of its parents.
Each creature has a finite life span, and as food sources in the landscape are depleted, creatures die off - which allows food sources to replenish. Over time the simulation has the potential to reach equilibrium.