refacto: enleve la map

This commit is contained in:
Tom Boullay
2026-04-16 16:11:20 +02:00
parent 269cf81595
commit 1d4f223c35
8 changed files with 63 additions and 108 deletions
+2 -6
View File
@@ -1,10 +1,8 @@
import { Suspense } from "react";
import { useCameraMode } from "@/hooks/debug/useCameraMode";
import { DebugCameraControls } from "@/utils/debug/scene/DebugCameraControls";
import { DebugHelpers } from "@/utils/debug/scene/DebugHelpers";
import { Environment } from "@/world/Environment";
import { Lighting } from "@/world/Lighting";
import { Map } from "@/world/Map";
import { PlayerComponent } from "@/world/player/PlayerComponent";
export function World(): React.JSX.Element {
@@ -15,10 +13,8 @@ export function World(): React.JSX.Element {
<Environment />
<Lighting />
<DebugHelpers />
{cameraMode === "debug" ? <DebugCameraControls /> : <PlayerComponent />}
<Suspense fallback={null}>
<Map />
</Suspense>
{cameraMode === "debug" ? <DebugCameraControls /> : null}
{cameraMode === "debug" ? null : <PlayerComponent />}
</>
);
}