Pages

November 29, 2020

Game Designer's Diary - Simulating Ecosystems!?

Game Designer's Diary is for the ultra-geeks who love coding, designing, and the process behind making games.

It is one of the great mysteries of the universe; how nature works. Sebastian Lague set out to find out how to best simulate an ecosystem, with some surprising results.

Sebastian starts off by generating an ecosystem with water and plants and placing some cute bunnies who hunger, thirst and - of course - reproduce. He soon adds extra dynamics to their attraction to one another, with some females actually rejecting males for low desirability.

"Not impressed, m'lady?"

What follows is an overview of the surprisingly straightforward C# code behind the rabbits' reproductive systems (good gosh never thought I'd type that sentence in a blog post). Genes are passed down to future generations and mutate over time.

Sebastian's simulation takes a few surprising turns - especially when there's a fox thrown in the mix - over the short runtime of the video, so I recommend taking a break from your hard work and watching the video. 

You'll thank me later.

Kyle van Rensburg is a Computer Science student with a taste for the weird, the complex, the bizarre and the downright crazy. He can turn just about any discussion philosophical and is fun to have at parties if you can stop him from thinking too hard. Check out his YouTube channel sometime.

No comments:

Post a Comment