Natural Selection Sim
I don't have a speed up option (sorry) so you probably should run it in the background :D
Instructions:
Configure the variables you want - Note a higher speed also costs more energy, if a creature runs out of energy they stop moving. Click "Run simulation". The simulation will start. You can click "Change Variables" to restart the sim and change the variables. Description of what variables do in how it works section.
How it works:
All creatures start at the speed of the "Starting Speed" variable, food is then spawned at a distance based on the "Max distance from center food can spawn at" variable. Each creature finds the nearest food rotates towards it , they do this every fixed update (50 times per second). They then move towards the current target. If a creature gets one food they live on. If a creature gets two food they live on and reproduce. The offsprings speed is a range based on the "Max variation of speed between parent and child" variable. Creatures are then deleted if they don't get any food and then moved back to the edge of the plane, offspring and new food is spawned, this marks a new generation.
Leave a comment
Log in with itch.io to leave a comment.