refactor: tighten project structure and strengthen tooling

This commit is contained in:
Tom Boullay
2026-04-16 10:45:05 +02:00
parent 3506858c96
commit 7769959135
57 changed files with 362 additions and 519 deletions
+2 -8
View File
@@ -1,7 +1,7 @@
import { useEffect, useRef } from "react";
import { useFrame } from "@react-three/fiber";
import type { AmbientLight, DirectionalLight } from "three";
import { Debug } from "@/debug/Debug";
import { Debug } from "@/utils/debug/Debug";
type LightingState = {
ambientIntensity: number;
@@ -27,22 +27,16 @@ export function Lighting(): React.JSX.Element {
const debug = Debug.getInstance();
if (!debug.active) {
return undefined;
return;
}
const folder = debug.createFolder("Lighting");
if (!folder) {
return undefined;
}
folder.add(LIGHTING_STATE, "ambientIntensity", 0, 5, 0.1).name("Ambient");
folder.add(LIGHTING_STATE, "sunIntensity", 0, 8, 0.1).name("Sun Intensity");
folder.add(LIGHTING_STATE, "sunX", -100, 100, 1).name("Sun X");
folder.add(LIGHTING_STATE, "sunY", 0, 150, 1).name("Sun Y");
folder.add(LIGHTING_STATE, "sunZ", -100, 100, 1).name("Sun Z");
return undefined;
}, []);
useFrame(() => {
-1
View File
@@ -1 +0,0 @@
// src/world/PostFX.tsx
+3 -3
View File
@@ -1,7 +1,7 @@
import { Suspense } from "react";
import { DebugCameraControls } from "@/debug/scene/DebugCameraControls";
import { DebugHelpers } from "@/debug/scene/DebugHelpers";
import { useCameraMode } from "@/debug/useCameraMode";
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";
-1
View File
@@ -1 +0,0 @@
// src/world/player/Crosshair.tsx
-1
View File
@@ -1 +0,0 @@
// src/world/zones/FarmZone.tsx
-1
View File
@@ -1 +0,0 @@
// src/world/zones/PowerGridZone.tsx
-1
View File
@@ -1 +0,0 @@
// src/world/zones/ResidentialZone.tsx
-1
View File
@@ -1 +0,0 @@
// src/world/zones/SchoolZone.tsx
-1
View File
@@ -1 +0,0 @@
// src/world/zones/WorkshopZone.tsx