Skip to content

A fish flocking simulation built with rust and macroquad

License

Notifications You must be signed in to change notification settings

eckyputrady/fish-flocking-simulation

Repository files navigation

Fish Flocking Simulation

screenshot

See the simulation on this page.

  • There are 5 types of fishes: 4 smaller ones and a bigger one.
  • The big fishes roam around independently.
  • The small fishes tend to flock with their own kind while avoiding the big fishes.

How To

  • You need to have rust toolchain installed. See here for the instruction.
  • running: cargo run
  • WASM:
    • building: cargo build --target wasm32-unknown-unknown --release
    • running:
      • Setup a webserver in this project root folder, e.g. cargo install basic-http-server && basic-http-server .
      • Open the server via web browser

Credits

  1. Macroquad
  2. Fish Sprites
  3. Boids

About

A fish flocking simulation built with rust and macroquad

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published