MCPcopy Index your code
hub / github.com/bones-ai/bevy-2d-shooter

github.com/bones-ai/bevy-2d-shooter @main

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

Bevy 2D Shooter

This is a 2d top-down shooter written in Rust using the Bevy game engine. It's capable of handling 100K enemies and uses a kd-tree to efficiently handle the collisions.

Link to the tutorial & timelapse video below.

screenshot

Tutorial

Here's the entire timelapse of the AI learning to drive

youtube

Showcase Video

youtube

Usage

  • Clone the repo
git clone git@github.com:bones-ai/bevy-2d-shooter.git
cd bevy-2d-shooter
  • Run
cargo run

Configurations

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

Credits

Controls

  • WASD for movement
  • Mouse wheel to change camera zoom

Core symbols most depended-on inside this repo

get_base_sprite_index
called by 2
src/enemy.rs
get_random_position_around
called by 1
src/enemy.rs
main
called by 0
src/main.rs
build
called by 0
src/resources.rs
load_assets
called by 0
src/resources.rs
update_cursor_position
called by 0
src/resources.rs
default
called by 0
src/resources.rs
build
called by 0
src/camera.rs

Shape

Function 33
Class 26
Method 15
Enum 3

Languages

Rust100%

Modules by API surface

src/gun.rs11 symbols
src/enemy.rs11 symbols
src/player.rs9 symbols
src/gui.rs9 symbols
src/collision.rs9 symbols
src/animation.rs9 symbols
src/resources.rs7 symbols
src/world.rs6 symbols
src/camera.rs4 symbols
src/state.rs1 symbols
src/main.rs1 symbols

For agents

$ claude mcp add bevy-2d-shooter \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact