Simple flocking simulation in LibGDX
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
android
core
desktop
gradle/wrapper
html
ios
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

flock-shoal

This is a simple fish/flock/swarm simulation in Java using LibGDX.

Individuals in a flock make movement decisions based on three rules:

  • Don't overcrowd neighbors
  • Align to the nearby average direction
  • Head towards the nearby average position

With these three rules a convincing flock simulation can be made.

Building

Use the included build.gradle

The flock logic can be found in core/src/, however to run on desktop you should use desktop/src/com.fonduegames.flockshoal.desktop/DesktopLauncher as the main class.