MCPcopy Index your code
hub / github.com/LarsDu/StarRust

github.com/LarsDu/StarRust @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
152 symbols 163 edges 32 files 11 documented · 7%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

StarRust

Play Here

Open-source sidescrolling space shooter made with Rust and Bevy

Currently very unstable.

NOTE (8/4/2023): This project is generally shelved until Bevy is more mature. Namely GPU instancing and/or batched rendering, and a particle system that works with WASM builds would be highly desirable!

TODO:

  • [x] Rework spawning to allow for arbritrary types to spawn.
  • [ ] Adopt Bevy Hanabi particle system once WASM compatibility is implemented
  • [ ] Setup Shader instancing for 3d Models
  • [ ] UI
  • [ ] Player Healthbar
  • [ ] Set up PowerUps
  • [ ] PowerUpBundle and PowerUpSystem
  • [x] Migrate to Bevy stageless RFC
  • [ ] Implement new enemies
  • [ ] Platform with turret
  • [ ] Boss with multiple turret
  • [ ] PowerUps
  • [ ] PowerUp Plugin
  • [ ] PowerUp-specific bundles
  • [ ] Powerup pickups
  • [ ] Weapon PowerUps
  • [ ] 3x Cone shot
  • [ ] 6x Cone shot
  • [ ] "Bombs"
  • [ ] Missiles with sinusoidal trajectories
  • [ ] Performance improvements:
  • [ ] Webassembly builds choke on asset loading (on pressing start button)
  • [-] Adopt GPU instances for 3d meshes once this is implemented in bevy
  • [ ] Multiple levels

Contributor Guidlines

Extension points exported contracts — how you extend this code

BundledActor (Interface)
(no doc) [6 implementers]
src/game/actor/mod.rs
AiBulletBundle (Interface)
(no doc) [2 implementers]
src/game/actor/bullet.rs

Core symbols most depended-on inside this repo

size
called by 2
src/game/walls.rs
send_projectile_spawn_event
called by 2
src/game/player.rs
check_aabb_collision
called by 2
src/game/collisions.rs
position
called by 1
src/game/walls.rs
spawn_bullet
called by 1
src/game/weapon/mod.rs
spawn_from_spawn_info
called by 1
src/game/levels/mod.rs
charge_forward
called by 1
src/game/ai/mod.rs
sine_charge
called by 1
src/game/ai/mod.rs

Shape

Class 70
Function 42
Method 30
Enum 8
Interface 2

Languages

Rust99%
TypeScript1%

Modules by API surface

src/game/components.rs19 symbols
src/menus/mod.rs15 symbols
src/game/walls.rs8 symbols
src/game/player.rs8 symbols
src/game/collisions.rs8 symbols
src/game/actor/mod.rs8 symbols
src/game/levels/mod.rs7 symbols
src/game/events.rs7 symbols
src/game/actor/ship.rs7 symbols
src/game/ai/mod.rs6 symbols
src/game/actor/bullet.rs6 symbols
src/game/particles/components.rs5 symbols

For agents

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

⬇ download graph artifact