A simulation of bat swarms and their interaction with bait and their homes(a bat house in this case). https://dinoplane.github.io/p4-flocking-starter/
https://www.youtube.com/watch?v=Up87ngZE4C0&ab_channel=NatGeoWILD https://www.youtube.com/watch?v=ezF9yrplT2A&ab_channel=HuntingDoc https://www.youtube.com/watch?v=V9saYU_KPdA&ab_channel=CBSSundayMorning https://www.youtube.com/watch?v=iBJaE7CIGto&ab_channel=ChrisLittle
Might add this: https://freesound.org/people/Abacagi/sounds/483397/
I wanted to implement bat swarming behavior.
In terms of the component behaviors:
Alignment: They all try to align with each other esp. when there is a target.
Coherence: The bats seem to cluster together when hounding a target, but they are a bit loose sometimes.
Separation: Swarms have a tendency to disperse and come back together.
Attraction: The bats may target their food and swarm until they are full or the bait is depleted.
Homing: This is like attraction, except bats will go back hom after they are full. When they are hungry they come back out.
Bats are fast and can maneuver sharp turns.
I want the user to feel the erratic yet organized nature of bats. I achieved this by making the bats fast and hound bait. When they are full, they rush back to their bat house.
To improve, maybe I could have used sprites instead of drawing because that flapping took some considerable time.
Credit: Created by Arrian Chi using template https://github.com/julinas/p4-flocking-starter
PS: it's morbin time.