Files
Space-Game/apps/AGENTS.md
francy51 a7796a1394 Split Rust game src into modules; update AGENTS.md for dual toolchain
- Refactor apps/game/src/main.rs into modules: state.rs, camera.rs, ui/, gameplay/
- Add gameplay/galaxy_creation.rs scaffold (stubs only, no new logic)
- Update root AGENTS.md: separate TS workspace vs Rust game commands
- Update apps/AGENTS.md: docs/game/site use two toolchains, not one
- Add apps/game/AGENTS.md: build commands, module layout, naming conventions, Plugin pattern
2026-06-04 10:00:43 -04:00

24 lines
1.0 KiB
Markdown

# apps/ — Application Packages
Three independent applications. **Note**: they do not share a toolchain.
| App | Toolchain | Port / Binary | Description |
|-----|-----------|---------------|-------------|
| `docs` | Vite + React + TS | 5173 | Living design docs, 16 doc pages, 14 interactive demos, game-slice prototype |
| `game` | Rust + Bevy | `cargo run` | Single-player game client. Standalone — does not depend on the pnpm workspace |
| `site` | Vite + React + TS | 5174 | Public landing page / marketing site |
## TS apps (`docs`, `site`)
- Vite 7, React 18, TypeScript 5.8
- Tailwind CSS v4 with `@void-nav/ui` shared primitives
- `docs` also uses Three.js + React Three Fiber for 3D scenes
- Managed via pnpm workspace scripts (`pnpm dev:docs`, `pnpm dev:site`, etc.)
## Rust app (`game`)
- Bevy 0.16, Rust edition 2021
- Built and run via `cargo` (no Vite, no pnpm scripts)
- See [`apps/game/AGENTS.md`](./game/AGENTS.md) for module layout, naming conventions, and build commands
- Will connect to SpacetimeDB via the Rust SDK when persistence is wired up