MCPcopy Index your code
hub / github.com/bones-ai/rust-ecosystem-simulation

github.com/bones-ai/rust-ecosystem-simulation @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
96 symbols 136 edges 10 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Procedural World Generation

This is a simple boid ecosystem simulation inspired by Daniel Shiffman's (TheCodingTrain) Ecosystem simulation - https://www.youtube.com/watch?v=flxOkx0yLrY

Built in Rust using the Bevy game engine.

screenshot

Timelapse video

Part 1

youtube

Part 2 with predators

youtube

Usage

  • Clone the repo
git clone git@github.com:bones-ai/rust-ecosystem-simulation.git
cd rust-ecosystem-simulation
  • Run the simulation
cargo run

Controls

  • Backspace - Show graphs
  • Tilde - Show graph settings
  • Tab - Show debug gizmos
  • 1 - Camera follow boid
  • 2 - Camera follow predator boid
  • 3 - Camera snap to center

Configurations

  • The project config file is located at src/configs.rs

Core symbols most depended-on inside this repo

push
called by 20
src/utils.rs
get_color
called by 8
src/utils.rs
get_steering_force
called by 6
src/utils.rs
is_food
called by 6
src/elements.rs
get_plot
called by 6
src/gui.rs
get_closest_item
called by 3
src/boid.rs
mutate
called by 3
src/boid.rs
limit_to_world
called by 2
src/utils.rs

Shape

Function 46
Class 30
Method 19
Enum 1

Languages

Rust100%

Modules by API surface

src/boid.rs36 symbols
src/elements.rs18 symbols
src/utils.rs13 symbols
src/gui.rs10 symbols
src/world.rs5 symbols
src/stats.rs5 symbols
src/globals.rs5 symbols
src/main.rs4 symbols

For agents

$ claude mcp add rust-ecosystem-simulation \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact