From 87a5153fe27d27d23109c29de2f464b0b6a56b0d Mon Sep 17 00:00:00 2001 From: Dejvino Date: Mon, 29 Dec 2025 21:54:25 +0000 Subject: [PATCH] Tweak: minor fixes of areas --- party-cathedral/src/scene/dancers.js | 2 +- party-cathedral/src/scene/medieval-musicians.js | 6 +++--- party-cathedral/src/scene/rose-window-lightshafts.js | 7 +++++++ party-cathedral/src/scene/stage-torches.js | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/party-cathedral/src/scene/dancers.js b/party-cathedral/src/scene/dancers.js index d8eacd9..32adaf1 100644 --- a/party-cathedral/src/scene/dancers.js +++ b/party-cathedral/src/scene/dancers.js @@ -111,7 +111,7 @@ export class Dancers extends SceneFeature { const jumpDuration = 0.5; const jumpHeight = 2.0; const moveSpeed = 2.0; - const movementArea = { x: 10, z: 4, centerZ: -length / 2 + stageDepth / 2 }; + const movementArea = { x: 9, z: 3.6, centerZ: -length / 2 + stageDepth / 2 }; this.dancers.forEach(dancerObj => { const { mesh } = dancerObj; diff --git a/party-cathedral/src/scene/medieval-musicians.js b/party-cathedral/src/scene/medieval-musicians.js index f9dd7b9..99efd2f 100644 --- a/party-cathedral/src/scene/medieval-musicians.js +++ b/party-cathedral/src/scene/medieval-musicians.js @@ -129,9 +129,9 @@ export class MedievalMusicians extends SceneFeature { const time = state.clock.getElapsedTime(); const moveSpeed = 2.0; - const stageArea = { x: 10, z: 4, y: stageHeight, centerZ: -length / 2 + stageDepth / 2 }; - const floorArea = { x: 10, z: 4, y: 0, centerZ: -length / 2 + stageDepth + 2 }; - const planeEdgeZ = -length / 2 + stageDepth; + const stageArea = { x: 9, z: 3.8, y: stageHeight, centerZ: -length / 2 + stageDepth / 2 }; + const floorArea = { x: 10, z: 3.5, y: 0, centerZ: -length / 2 + stageDepth + 2 }; + const planeEdgeZ = -length / 2 + stageDepth + 0.5; const planeJumpChance = 0.1; const jumpChance = 0.005; const jumpDuration = 0.5; diff --git a/party-cathedral/src/scene/rose-window-lightshafts.js b/party-cathedral/src/scene/rose-window-lightshafts.js index e969805..b54baf9 100644 --- a/party-cathedral/src/scene/rose-window-lightshafts.js +++ b/party-cathedral/src/scene/rose-window-lightshafts.js @@ -110,6 +110,13 @@ export class RoseWindowLightshafts extends SceneFeature { mesh.material.map.offset.y += deltaTime * 0.004; mesh.material.map.offset.x -= deltaTime * 0.02; + if (mesh.material.map.offset.y >= 0.5) { + mesh.material.map.offset.y -= 0.5; + } + if (mesh.material.map.offset.x <= 0.0) { + mesh.material.map.offset.x += 1.0; + } + // --- Movement Logic --- const pathDirection = floorEndPoint.clone().sub(floorStartPoint).normalize(); const pathLength = floorStartPoint.distanceTo(floorEndPoint); diff --git a/party-cathedral/src/scene/stage-torches.js b/party-cathedral/src/scene/stage-torches.js index 5354ffa..9ca5c0b 100644 --- a/party-cathedral/src/scene/stage-torches.js +++ b/party-cathedral/src/scene/stage-torches.js @@ -17,7 +17,7 @@ export class StageTorches extends SceneFeature { // --- Stage Dimensions for positioning --- const length = 40; const naveWidth = 12; - const stageWidth = naveWidth - 1; + const stageWidth = naveWidth - 2; const stageHeight = 1.5; const stageDepth = 5;