Food, reproduction, and life counters
Food After predators were added, we ventured into adding an additional layer to the food chain: fish food. While this change ultimately required relatively few lines of code to implement, there were a lot of small tweaks and bugfixes that needed to be made. In order to utilize the predator system, food was added as new school of fish. That is to say, every piece of food is actually a boid, with all the abilities and steering forces of any other fish, just with zero movement speed. Apparently there were several parts, both in how the boids spawn and in how they interact, that originally didn't account for having "fishes" that can't move, but once these were hunted down, they were relatively easy to fix. For simplicity's sake, the model for food is just a light green sphere. Reproduction At this point, both fish and food will both be slowly picked off by their respective predators until the only remaining feature in the simulation are the sharks, so the next step i...