add zustand game state

This commit is contained in:
Tom Boullay
2026-04-30 14:29:29 +02:00
parent 7c7dbdb588
commit b9970c4e03
11 changed files with 325 additions and 12 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ export function DocsAnimationPage(): React.JSX.Element {
<DocsDocument
content={animation}
frContent={animation}
meta="07"
meta="08"
title="Animation & 3D Model System"
/>
);
+1 -1
View File
@@ -7,7 +7,7 @@ export function DocsEditorPage(): React.JSX.Element {
<DocsDocument
content={editor}
frContent={editorFr}
meta="06"
meta="07"
title="Editor User Guide"
/>
);
+1 -1
View File
@@ -7,7 +7,7 @@ export function DocsFeaturesPage(): React.JSX.Element {
<DocsDocument
content={features}
frContent={featuresFr}
meta="05"
meta="06"
title="Features"
/>
);
+14
View File
@@ -0,0 +1,14 @@
import zustand from "../../../../docs/technical/zustand.md?raw";
import { DocsDocument } from "@/components/docs/DocsDocument";
import { zustandFr } from "@/data/docs/docsTranslations";
export function DocsZustandPage(): React.JSX.Element {
return (
<DocsDocument
content={zustand}
frContent={zustandFr}
meta="05"
title="Zustand Game State"
/>
);
}
+2 -6
View File
@@ -1,9 +1,7 @@
import { Suspense } from "react";
import { Canvas } from "@react-three/fiber";
import { Crosshair } from "@/components/ui/Crosshair";
import { GameStateHUD } from "@/components/ui/GameStateHUD";
import { InteractPrompt } from "@/components/ui/InteractPrompt";
import { DebugPerf } from "@/components/debug/DebugPerf";
import { GameUI } from "@/components/ui/GameUI";
import { World } from "@/world/World";
export function HomePage(): React.JSX.Element {
@@ -15,9 +13,7 @@ export function HomePage(): React.JSX.Element {
<DebugPerf />
</Suspense>
</Canvas>
<GameStateHUD />
<Crosshair />
<InteractPrompt />
<GameUI />
</>
);
}