amethyst / evoli

An ecosystem-simulation game made with Amethyst
https://community.amethyst.rs/t/evoli-introduction/770
Other
217 stars 33 forks source link

Add swarms of insects #64

Closed sunreef closed 5 years ago

sunreef commented 5 years ago

Using the bee creature (still named bee for now), I added swarms of insects that move around using the Wander component. Each swarm is an entity that has several children, the bees.

The movement of each bee is a composition of the movement of the swarm entity and a kind of pendulum oscillation around the swarm center.

moonheart08 commented 5 years ago

Maybe implement Boids Algorithm? It'd give a swarm a more interesting movement pattern

sunreef commented 5 years ago

@moonheart08, Boids looks really nice. I will need to design additional rules to make it look like a cloud of buzzing insects. Thanks for the pointer.