!!PASTE INTO TURBOWARB.ORG FOR FASTER RENDERING!! Drag the sun (left to right) to change sunlight intensity. Up and down arrow keys to change ambient sunlight Watch the plants evolve!
Fun little project of mine. Each plant has an individual "DNA" that determines what parts it grows, when which parts grow, the color of the trunk, the sunlight tolerance and more. Photosynthesis Energy is calculated each step by raycasting. The sunlight changes direction each step, like it would in real life. After 15 steps, all non-perennial plants die and their offspring are spawned. If you watch for long enough, you will see perennial plants (trees etc) evolve. Roadmap: Add Water! (With that: trunk thickness, water storage, dryness tolerance etc) Add zooming, panning. (Unfortunately, the time it takes to calculate the sunlight collision means that this will only be available when the simulation is paused.)