Grass, Information, & Vision

I’ve added a weekend of features in a few places. I’ve exposed a bit more data to the user. The climate and proximity to water has always effected grass growth , but now the better off grass will be greener based on all factors contributing, so greener grass grows back faster. I’ve also added a population graph at the bottom of the screen to easily see trends in populations.

New genetic trait vision effects how far creatures can see to take into account things they react to in the world. Dragons will only track things close enough to them that they can see them. Sheep will now avoid dragons close enough to them that they can see them. This creates a much more interesting simulation as sheep herds split as the run away and overall look much more like a school of fish avoiding predators.

 

Click to play

grasssheepdragons6

Grass, Migration, & Life

Have another update to the simulation, grass now grows slightly quicker and there is more weight put on climate and water. This makes hospitable zones more hospitable and more likely to allow sheep to live without permanently migrating like a swarm of locust.

I’ve also made the life span of each creature driven by genetics so sheep and dragons should move towards optimal lifespans over time.

Click to Play

grasssheepdragons5

Grass, Evolution, & Restraint

Added in a bit more functionality today. The rate of breeding and the frequency of eating is now determined by traits of the animal. These traits restrict actions and mock intelligent behavior. Such things as “I’m not that hungry, I’ll leave the sheep for later” are now possible because of this. These traits are also driven per animal and are passed down to offspring with a chance of mutation. So, hopefully, the simulation will work towards stabilizing itself.

Click to Play

grasssheepdragons3

Grass, Rivers, and Climates

I’ve added rivers and climates into the simulation. Grass grows quicker the closer it is to the equator and or a river. Sheep can enter rivers but don’t like it and can’t feed in it so they leave quickly most of the time.

I also made a new area for information at the top of the screen so the text doesn’t cover up the simulation.

grasssheepdragons2

 

 

 

 

 

Click to Play

Grass, Sheep, & Dragons

After having a discussion about predator prey simulations at work yesterday I felt the need to make one. Nothing fancy yet – just sheep that eat grass and dragons that eat sheep. Mostly a PoC at this point, but I might come back to it and do more.

I should probably look at having permalinks and actual pages for my projects at this point. Maybe tomorrow?

Play