Tweak: cleanup textures and improve dancers jumping

This commit is contained in:
Dejvino
2025-11-22 17:40:57 +01:00
parent 2613d152dd
commit 141b3acf72
11 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ export class CameraManager extends SceneFeature {
}
this.lastSwitchTime = state.clock.getElapsedTime();
this.switchCamera(0);
this.switchCamera(4);
}
// This is the logic moved from animate.js
+3 -2
View File
@@ -67,7 +67,8 @@ export class Dancers extends SceneFeature {
const geometry = new THREE.PlaneGeometry(dancerWidth, dancerHeight);
const dancerPositions = [
new THREE.Vector3(-4, stageHeight + dancerHeight / 2, -length / 2 + stageDepth / 2 - 2),
new THREE.Vector3(4.5, stageHeight + dancerHeight / 2, -length / 2 + stageDepth / 2 - 1.8),
new THREE.Vector3(0, stageHeight + dancerHeight / 2, -length / 2 + stageDepth / 2 - 1.8),
new THREE.Vector3(4, stageHeight + dancerHeight / 2, -length / 2 + stageDepth / 2 - 2.2),
];
dancerPositions.forEach((pos, index) => {
@@ -173,7 +174,7 @@ export class Dancers extends SceneFeature {
}
} else {
const musicTime = state.clock.getElapsedTime();
if (state.music && state.music.beatIntensity > 0.8 && Math.random() < 0.2 && musicTime > 10) {
if (state.music && state.music.beatIntensity > 0.8 && Math.random() < 0.5 && musicTime > 10) {
dancerObj.isJumping = true;
dancerObj.jumpStartTime = time;
}