feat: add the map

This commit is contained in:
2026-04-15 16:09:02 +02:00
parent f67799db30
commit d486f6f381
26 changed files with 391 additions and 587 deletions
+3 -2
View File
@@ -31,6 +31,7 @@ Scene objects are **never** singleton classes. Managers are **never** React comp
- Scene components live in `src/world/` and `src/components/3d/`
- UI overlays live in `src/components/ui/`
- Managers live in `src/stateManager/`
- Debug tooling lives in `src/debug/`
- Hooks live in `src/hooks/`
- Static data lives in `src/data/`
- Shaders live in `src/shaders/`
@@ -54,9 +55,9 @@ import { useGameState } from "@/hooks/useGameState";
### Debug
- Debug panel activates with `?debug` in URL
- All debug logic goes through `Debug.getInstance()` from `src/utils/Debug.ts`
- All debug logic goes through `Debug.getInstance()` from `src/debug/Debug.ts`
- Never scatter `if (isDev)` blocks across files
- `r3f-perf` is lazy-loaded only in debug mode via `src/components/3d/DebugPerf.tsx`
- `r3f-perf` is lazy-loaded only in debug mode via `src/debug/DebugPerf.tsx`
## Managers (4 max)