feat: add the map

This commit is contained in:
Tom Boullay
2026-04-15 16:09:02 +02:00
parent aded4ee209
commit 9e9ac8066c
24 changed files with 386 additions and 585 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)