This is a swarm simulation for Scala.js. It displays a swarm of bees chasing a wasp.
The code is based on Jeff Butterworth's xswarm for X11. It only uses integer arithmetic and performs well even with large numbers of bees.
First, install Seed.
Then, run the following commands:
seed bloop --tmpfs
bloop link swarm
cp index.html /tmp/build-scala-swarm/bloop
And navigate your browser to /tmp/build-scala-swarm/bloop/index.html
.
scala-swarm is licensed under the terms of the Apache v2.0 licence.