Skip to main content
AmigoFish

Coding Adventure: Simulating an Ecosystem

From Sebastian Lague · · 6 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.

If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.

Watch on YouTube

Not rated yet

Description

In this coding adventure I attempt to simulate a simple ecosystem. Will the foxes and rabbits get along? Probably not...

If you'd like to support the creation of more programming videos like this, please consider becoming a patron here: https://www.patreon.com/SebastianLague

This video was inspired by Primer's series on evolution. I highly recommend taking a look! https://youtu.be/0ZGbIKd0XrM As many in the comments have said, if you enjoy this, you may want to check out equilinox, which is an entire game based around creating an ecosystem. It’s awesome. https://youtu.be/lHHpMn2UK6s

Source code: The source for this video is a total mess, which I don't really want to share! I'm working on a second part though, and you can find the work-in-progress code for that here: https://github.com/SebLague/Ecosystem-2/tree/master

Music from https://filmmusic.io: "Inspired", "Deadly Roulette", and "Le Grande Chase" by Kevin MacLeod (https://incompetech.com) Licence: CC BY (http://creativecommons.org/licenses/by/4.0/)

Back to Sebastian Lague · Report a problem