MCPcopy Index your code
hub / github.com/alexichepura/bevy_garage

github.com/alexichepura/bevy_garage @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
249 symbols 342 edges 65 files 5 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

bevy_garage - gamelike car simulation playground

Bevy Garage 0.6 screenshot 2023-05-24 Bevy Garage 0.6 iphone xs screenshot 2023-05-24 Bevy Garage Overture Maps

Introductory walk-through https://youtu.be/f6PcaTX58J4 \ Deep Q-Learning car training for 1 hour https://youtu.be/A2JMPIWGXBsf \ Wasm demo https://alexi.chepura.space/bevy-garage - game engine https://bevyengine.org - rigid body physics https://rapier.rs - kenney assets https://www.kenney.nl/assets/racing-kit - neural network https://github.com/coreylowman/dfdx - api server and client https://github.com/tokio-rs/axum - db client https://github.com/Brendonovich/prisma-client-rust - sound https://github.com/harudagondi/bevy_fundsp & https://github.com/SamiPerttu/fundsp - virtual joystick https://github.com/SergioRibera/virtual_joystick

Run

bevy fast compile guide: https://bevy.org/learn/quick-start/getting-started/setup/#enable-fast-compiles-optional\ fast builds cargo config example https://github.com/bevyengine/bevy/blob/main/.cargo/config_fast_builds.toml

cargo run --release

https://bevyengine.org/learn/book/getting-started/setup/

Neural network

cargo r -r --features="nn"

Api server for neural network (optional)

# generate prisma db client
cargo prisma generate
# push schema to database
cargo prisma db push
# run api server
cd api && cargo r -r
# run app with saving replay buffer
cargo r -r --features="nn,nn_api"
# prisma studio https://github.com/Brendonovich/prisma-client-rust/issues/96
npx prisma studio

Key bindings

  • UP, DOWN, LEFT, RIGHT - drive
  • 1, 2, 3, 4, 5 - camera views
  • 0 - free camera with WASDQE(SHIFT) control and mouse
  • R - debug mode
  • SHIFT+SPACE - respawn at random position
  • N - toggle nn
  • H, J, K, L - directed light control
  • X - enable sound, Z - decrease volume, C - increase volume

History

Bevy Garage 0.3 screenshot 2023-03-25 Screenshot 2023-02-10 screenshot 2023-01-19 old screenshot 1 old screenshot 2 old screenshot 3

License

Bevy Garage is free, open source and permissively licensed! Except where noted (below and/or in individual files), all code in this repository is dual-licensed under either:

at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both.

Your contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Core symbols most depended-on inside this repo

Shape

Function 102
Class 74
Method 63
Enum 10

Languages

Rust100%

Modules by API surface

camera/src/lib.rs21 symbols
nn/src/dqn_bevy.rs16 symbols
renet/src/lib.rs12 symbols
renet/src/bin/client.rs12 symbols
dsp/src/lib.rs12 symbols
nn/src/api_client.rs11 symbols
src/dash.rs9 symbols
car/src/car.rs9 symbols
renet/src/bin/server.rs8 symbols
trainer/src/replay.rs7 symbols
overture_maps/src/dash.rs6 symbols
nn/src/replay.rs6 symbols

For agents

$ claude mcp add bevy_garage \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page