From 32d644b09d5b4c9076c2bea71b994cdc1c79486e Mon Sep 17 00:00:00 2001 From: math-pixel <59537610+math-pixel@users.noreply.github.com> Date: Mon, 11 May 2026 11:13:36 +0200 Subject: [PATCH] feat-intro --- GAME_FLOW.md | 6 +++--- src/components/zone/ZoneDetection.tsx | 2 +- src/data/zones.ts | 2 +- src/types/game.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/GAME_FLOW.md b/GAME_FLOW.md index 3b6cc0b..c3ed79c 100644 --- a/GAME_FLOW.md +++ b/GAME_FLOW.md @@ -3,7 +3,7 @@ ## Étapes du jeu ``` -intro → start-intro → naming → bienvenue → star-move → outOfFabrik +intro → start-intro → naming → bienvenue → star-move → bike ``` --- @@ -45,7 +45,7 @@ intro → start-intro → naming → bienvenue → star-move → outOfFabrik - **État** : Le joueur peut maintenant se déplacer librement - **Zone** : La détection de zone devient active (ZoneDetection) -### 6. `outOfFabrik` +### 6. `bike` - **Déclenchement** : Quand le joueur entre dans la zone de sortie - **Action** : Transition vers l'étape finale @@ -89,7 +89,7 @@ export const ZONES: Zone[] = [ position: [50, 0, 50], // Position de la zone de sortie radius: 10, // Rayon de détection height: 20, // Hauteur de la zone (pour la visualisation) - targetStep: "outOfFabrik", // Étape cible quand on entre dans la zone + targetStep: "bike", // Étape cible quand on entre dans la zone }, ]; ``` diff --git a/src/components/zone/ZoneDetection.tsx b/src/components/zone/ZoneDetection.tsx index 9a53d29..843bbdb 100644 --- a/src/components/zone/ZoneDetection.tsx +++ b/src/components/zone/ZoneDetection.tsx @@ -24,7 +24,7 @@ export function ZoneDetection(): null { const playerPos = { x: 0, y: 0, z: 0 }; folder - .add(gameState, "step", ["intro", "outOfFabrik"]) + .add(gameState, "step", ["intro", "bike"]) .name("Game Step") .disable(); diff --git a/src/data/zones.ts b/src/data/zones.ts index 06b254a..974b67f 100644 --- a/src/data/zones.ts +++ b/src/data/zones.ts @@ -7,6 +7,6 @@ export const ZONES: Zone[] = [ position: [-5, 25, -15] as Vector3Tuple, radius: 10, height: 20, - targetStep: "outOfFabrik", + targetStep: "bike", }, ]; diff --git a/src/types/game.ts b/src/types/game.ts index 5f5e397..543e7df 100644 --- a/src/types/game.ts +++ b/src/types/game.ts @@ -6,7 +6,7 @@ export type GameStep = | "naming" | "bienvenue" | "star-move" - | "outOfFabrik"; + | "bike"; export interface Zone { id: string;