Skip to content

adamthedash/bois

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bois

Simple swarm simulation using the Boids model

Screenshot of the bois

Bois follow simple rules:

  • Separation: Don't bump into other bois
  • Alignment: Follow your fellow nearbois
  • Cohesion: Keep the gang together
  • Escape: Don't go running out of the arena

Each Boi is has randomly generated attributes within some constraints:

  • Vision: How far can they see
  • Speed: How fast they can go
  • Turning speed: How quickly can the turn around

Species

Predator

  • Tries to go after nearby prey

Prey

  • Runs away from nearest predator

Life & death

When a predator catches a prey, it gobbles it up.

Roadmap

Features

  • Different Boi types - eg. predator (& gobbling) & prey, different species with distinct strategies
  • Lifecycles - death & breeding
  • World interaction - Eg. different biomes, weather, mountains that affect the Bois differently.
  • Strategy variation - Let bois care differently about the different rules

Technical improvements

  • Graphics - Some terrain, sprites, etc.
  • Better data structure / algo for dealing with spatial stuff - STRTree for finding nearbois, etc.
  • Interface to enable Bois as a simulation environment for others Like these
  • start refactoring out things - Entity, Strategy, separate update logic from rendering, etc.
  • Replace hand-rolled Vec2 with out of the box one from ggez.

About

Boid swarm simulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages