fix(review): address audit findings before merge
🔍 Lint / 🪄 Check lint (pull_request) Has been cancelled
🔍 Lint / 🎨 Check format (pull_request) Has been cancelled
🔍 Lint / 🔎 Typecheck (pull_request) Has been cancelled
📊 Quality / 🔒 Security Audit (pull_request) Has been cancelled
📊 Quality / 📋 Dependency Freshness (pull_request) Has been cancelled
📊 Quality / 📦 Bundle Size (pull_request) Has been cancelled
🔍 Lint / 🏗 Build (pull_request) Has been cancelled

This commit is contained in:
Tom Boullay
2026-05-29 01:23:08 +02:00
parent 4728690a11
commit 093ffd726d
45 changed files with 823 additions and 785 deletions
+18
View File
@@ -0,0 +1,18 @@
import type { Vector3Tuple } from "@/types/three/three";
export interface StageAnchorConfig {
color: string;
position: Vector3Tuple;
scale?: number;
}
export const INTRO_STAGE_ANCHOR: StageAnchorConfig = {
color: "#7dd3fc",
position: [0, 4, 0],
};
export const OUTRO_STAGE_ANCHOR: StageAnchorConfig = {
color: "#fb7185",
position: [0, 6, 10],
scale: 1.25,
};
@@ -1,9 +1,9 @@
import type { Vector3Tuple } from "@/types/three/three";
export type PersonnageId = "electricienne" | "gerant" | "fermier";
export type CharacterId = "electricienne" | "gerant" | "fermier";
export interface PersonnageConfig {
id: PersonnageId;
export interface CharacterConfig {
id: CharacterId;
label: string;
modelPath: string;
position: Vector3Tuple;
@@ -13,7 +13,7 @@ export interface PersonnageConfig {
defaultAnimation: string;
}
export const PERSONNAGE_CONFIGS = {
export const CHARACTER_CONFIGS = {
electricienne: {
id: "electricienne",
label: "Electricienne",
@@ -44,10 +44,10 @@ export const PERSONNAGE_CONFIGS = {
animations: ["idle", "walk"],
defaultAnimation: "idle",
},
} satisfies Record<PersonnageId, PersonnageConfig>;
} satisfies Record<CharacterId, CharacterConfig>;
export const PERSONNAGE_IDS = [
export const CHARACTER_IDS = [
"electricienne",
"gerant",
"fermier",
] as const satisfies readonly PersonnageId[];
] as const satisfies readonly CharacterId[];
+1
View File
@@ -1,5 +1,6 @@
export const GAME_SCENE_SKY_MODEL_PATH = "/models/skybox/model.gltf";
export const GAME_SCENE_SKY_FALLBACK_MODEL_PATH = "/models/sky/model.glb";
export const GAME_SCENE_SKY_MODEL_SCALE = 100;
export const GAME_SCENE_SKY_FALLBACK_MODEL_SCALE = 1;
export const GAME_SCENE_FALLBACK_BACKGROUND_COLOR = "#0b1018";
export const PHYSICS_SCENE_BACKGROUND_COLOR = "#0b1018";
+1 -1
View File
@@ -90,7 +90,7 @@ export function getVegetationModelScaleMultiplier(name: string): number {
);
}
export const INSTANCED_MAP_EXCEPTIONS = new Set([
export const VEGETATION_INSTANCE_EXCLUDED_NODE_NAMES = new Set([
"Scene",
"blocking",
"terrain",