From cf77f57d1cedebafdfb40a622023064e5bcfaeeb Mon Sep 17 00:00:00 2001 From: David Kotnik Date: Sat, 10 Jan 2026 14:39:50 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20BUGFIX:=20Disabled=20noir=5Fmusi?= =?UTF-8?q?c=20in=20UltimatePrologueScene?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ FIXED CRASH: - Commented out noir_music loading (file path issue) - Added safety check in fadeToGame() - Prologue will work without music temporarily ERROR WAS: - UltimatePrologueScene tried to load 'night_theme.wav' - File doesn't exist or wrong path - Crashed on scene.start('StoryScene') TEMP SOLUTION: - Music disabled with /* */ comments - Can re-enable after fixing file path - Game will continue without prologue music Game should work now! --- src/scenes/UltimatePrologueScene.js | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/scenes/UltimatePrologueScene.js b/src/scenes/UltimatePrologueScene.js index a0ee279ad..fe01fffbe 100644 --- a/src/scenes/UltimatePrologueScene.js +++ b/src/scenes/UltimatePrologueScene.js @@ -42,8 +42,8 @@ class UltimatePrologueScene extends Phaser.Scene { this.load.audio('v4_id_card', voicePath + '04_id_card.mp3'); this.load.audio('v5_determination', voicePath + '05_determination.mp3'); - // Noir ambient music - this.load.audio('noir_music', 'assets/audio/music/night_theme.wav'); + // Noir ambient music (TEMP DISABLED - file path issue) + // this.load.audio('noir_music', 'assets/audio/music/night_theme.wav'); } create() { @@ -56,12 +56,12 @@ class UltimatePrologueScene extends Phaser.Scene { // PURE CINEMATIC MODE - No HUD, No UI, Only Story // ================================================================ - // Start noir music (very low volume, atmospheric) - this.noirMusic = this.sound.add('noir_music', { + // Start noir music (TEMP DISABLED - file issue) + /* this.noirMusic = this.sound.add('noir_music', { volume: 0.2, loop: true }); - this.noirMusic.play(); + this.noirMusic.play(); */ // Create visual layers this.bgLayer = this.add.container(0, 0); @@ -419,13 +419,15 @@ class UltimatePrologueScene extends Phaser.Scene { fadeToGame() { console.log('🎬 Intro complete! Starting game...'); - // Fade out music - this.tweens.add({ - targets: this.noirMusic, - volume: 0, - duration: 2000, - onComplete: () => this.noirMusic.stop() - }); + // Fade out music (if exists) + if (this.noirMusic) { + this.tweens.add({ + targets: this.noirMusic, + volume: 0, + duration: 2000, + onComplete: () => this.noirMusic.stop() + }); + } // Fade to black this.cameras.main.fadeOut(2000, 0, 0, 0);