style: prettier reflow pylon config and lighting effect
Mechanical formatting cleanup carried over from the develop merge: inline single-line tuples and break long lines per project prettier config. No behavior change.
This commit is contained in:
@@ -20,14 +20,17 @@ export function PylonLightingEffect(): null {
|
|||||||
const step = useGameStore((state) => state.pylon.currentStep);
|
const step = useGameStore((state) => state.pylon.currentStep);
|
||||||
|
|
||||||
// True from "approaching" until narrator-outro (lighting resets before the outro audio)
|
// True from "approaching" until narrator-outro (lighting resets before the outro audio)
|
||||||
const isActive = mainState === "pylon" && step !== "locked" && step !== "narrator-outro";
|
const isActive =
|
||||||
|
mainState === "pylon" && step !== "locked" && step !== "narrator-outro";
|
||||||
|
|
||||||
// Working THREE.Color instances — lerped every frame
|
// Working THREE.Color instances — lerped every frame
|
||||||
const ambientRef = useRef(new THREE.Color(LIGHTING_STATE.ambientColor));
|
const ambientRef = useRef(new THREE.Color(LIGHTING_STATE.ambientColor));
|
||||||
const sunRef = useRef(new THREE.Color(LIGHTING_STATE.sunColor));
|
const sunRef = useRef(new THREE.Color(LIGHTING_STATE.sunColor));
|
||||||
|
|
||||||
// Target colours — updated reactively when isActive changes
|
// Target colours — updated reactively when isActive changes
|
||||||
const targetAmbientRef = useRef(new THREE.Color(LIGHTING_DEFAULTS.ambientColor));
|
const targetAmbientRef = useRef(
|
||||||
|
new THREE.Color(LIGHTING_DEFAULTS.ambientColor),
|
||||||
|
);
|
||||||
const targetSunRef = useRef(new THREE.Color(LIGHTING_DEFAULTS.sunColor));
|
const targetSunRef = useRef(new THREE.Color(LIGHTING_DEFAULTS.sunColor));
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -6,11 +6,7 @@ export const PYLON_DOWNED_ROTATION: Vector3Tuple = [0, 0, -0.9];
|
|||||||
|
|
||||||
export const PYLON_UPRIGHT_ROTATION: Vector3Tuple = [0, 0, 0];
|
export const PYLON_UPRIGHT_ROTATION: Vector3Tuple = [0, 0, 0];
|
||||||
|
|
||||||
export const PYLON_FARMER_NPC_POSITION: Vector3Tuple = [
|
export const PYLON_FARMER_NPC_POSITION: Vector3Tuple = [-16.13, 3.2, 52.46];
|
||||||
-16.13,
|
|
||||||
3.2,
|
|
||||||
52.46
|
|
||||||
];
|
|
||||||
|
|
||||||
export const PYLON_FARMER_NPC_AFTER_POSITION: Vector3Tuple = [
|
export const PYLON_FARMER_NPC_AFTER_POSITION: Vector3Tuple = [
|
||||||
PYLON_WORLD_POSITION[0] + 3,
|
PYLON_WORLD_POSITION[0] + 3,
|
||||||
|
|||||||
@@ -4,11 +4,7 @@ import { PYLON_WORLD_POSITION } from "@/data/gameplay/pylonConfig";
|
|||||||
// Zones qui active la coupure de courant
|
// Zones qui active la coupure de courant
|
||||||
export const PYLON_APPROACH_ZONE: ZoneConfig = {
|
export const PYLON_APPROACH_ZONE: ZoneConfig = {
|
||||||
id: "pylon-approach",
|
id: "pylon-approach",
|
||||||
position: [
|
position: [5, 4, -21.5],
|
||||||
5,
|
|
||||||
4,
|
|
||||||
-21.5
|
|
||||||
],
|
|
||||||
radius: 10,
|
radius: 10,
|
||||||
height: 18,
|
height: 18,
|
||||||
oneShot: true,
|
oneShot: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user