
I've always liked coding in behaviors, not hard coding. And emergent behavior is so fun to create. Here I started with some simple bubbles that merge on contact, then added small bubble munchers and then larger meat eaters. There is some emergent behavior here, the munchers sometimes almost flock as they go after the same bubbles but keep away from each other. The ecosystem is also self regulating--too many munchers and the eaters grow numerous, but then they eat all the munchers and starve out. It looks pretty too. Hit [tab] to see some debug info and creature stats.