/akka_boids

Boids implementation using Akka

Primary LanguageScalaGNU General Public License v3.0GPL-3.0

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.