Skip to content

makemeunsee/akka_boids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

akka_boids

Boids implementation with Akka.

Flocks, names, obstacles

Recorded 'video'

Inspired by niilohlin's work

Features

  • Boids as akka actors.
  • Each boid can have its own behavior.
  • Dimension neutral (current demo is 2D with Swing front end).

UI Features

  • Right click to add/drag 'enemies' in the world.
  • Double right click to remove them.
  • Mouse pointer is also an 'enemy'.
  • Resizing the frame resizes the world.
  • Double left click to catch a boid and name it! Prepend the name with an HTML color code (for instance #FF8800) to color your boid.
  • CTRL + N: restart the sim.
  • CTRL + S: save the sim.
  • CTRL + L: load a sim.

Usage

sbt run

Check function preStart in UI2D.scala to see how to add custom boids in the simulation.

About

Boids implementation using Akka

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages