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
+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 />
</>
);
}