Skip to content

dinoplane/p4-flocking-starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Blood Thirst

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/

Inspirations

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/

Target Behavior

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.

Two Additional behaviors:

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.

Other

Bats are fast and can maneuver sharp turns.

Artist Statement

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.7%
  • HTML 4.3%