🔧 BUGFIX: Disabled noir_music in UltimatePrologueScene

 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!
This commit is contained in:
2026-01-10 14:39:50 +01:00
parent 94ce7234aa
commit cf77f57d1c

View File

@@ -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);