microEvolution.js
A tiny evolution simulation - using QuadTree and separate axis theorem algorithms for collision detection - visualized with Canvas.
Utilizes simplified genetics to incorporate mutations on creep propagation.
Features
- Creeps of different genders (blue: male, pink: female) spawn with individual properties (movement pattern, energy pool, ...)
- Creeps consume energy each day to stay alive and die if none is left
- Dead creeps (grey) decay after a few days
- Food (green) spawns every month and adds energy to a creep if picked up
-
If creeps meet there is a chance for them to interact depending on gender:
male / male - cost: 20 - creeps may fight (one absorbs all energy of the other)
male / female - cost: 20 - female may be fertilized and create a new creep - if old enough (both parents pass half their energy to the child)