This commit is contained in:
2026-01-28 13:55:49 +02:00
parent 042fa4b16b
commit a5c7fe05f7
6 changed files with 101 additions and 34 deletions
+12
View File
@@ -594,6 +594,18 @@ class GameEngine extends THREE.EventDispatcher{
this.ambientSound.play();
}
showBackground(show){
if (show){
this.motionQueue.add({
o: this.scene,
a: { backgroundIntensity: 1},
t: 15
})
}else{
this.scene.backgroundIntensity = 0;
}
}
static textureLoader = new THREE.TextureLoader();
static audioLoader = new THREE.AudioLoader();