🔧 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:
@@ -42,8 +42,8 @@ class UltimatePrologueScene extends Phaser.Scene {
|
|||||||
this.load.audio('v4_id_card', voicePath + '04_id_card.mp3');
|
this.load.audio('v4_id_card', voicePath + '04_id_card.mp3');
|
||||||
this.load.audio('v5_determination', voicePath + '05_determination.mp3');
|
this.load.audio('v5_determination', voicePath + '05_determination.mp3');
|
||||||
|
|
||||||
// Noir ambient music
|
// Noir ambient music (TEMP DISABLED - file path issue)
|
||||||
this.load.audio('noir_music', 'assets/audio/music/night_theme.wav');
|
// this.load.audio('noir_music', 'assets/audio/music/night_theme.wav');
|
||||||
}
|
}
|
||||||
|
|
||||||
create() {
|
create() {
|
||||||
@@ -56,12 +56,12 @@ class UltimatePrologueScene extends Phaser.Scene {
|
|||||||
// PURE CINEMATIC MODE - No HUD, No UI, Only Story
|
// PURE CINEMATIC MODE - No HUD, No UI, Only Story
|
||||||
// ================================================================
|
// ================================================================
|
||||||
|
|
||||||
// Start noir music (very low volume, atmospheric)
|
// Start noir music (TEMP DISABLED - file issue)
|
||||||
this.noirMusic = this.sound.add('noir_music', {
|
/* this.noirMusic = this.sound.add('noir_music', {
|
||||||
volume: 0.2,
|
volume: 0.2,
|
||||||
loop: true
|
loop: true
|
||||||
});
|
});
|
||||||
this.noirMusic.play();
|
this.noirMusic.play(); */
|
||||||
|
|
||||||
// Create visual layers
|
// Create visual layers
|
||||||
this.bgLayer = this.add.container(0, 0);
|
this.bgLayer = this.add.container(0, 0);
|
||||||
@@ -419,13 +419,15 @@ class UltimatePrologueScene extends Phaser.Scene {
|
|||||||
fadeToGame() {
|
fadeToGame() {
|
||||||
console.log('🎬 Intro complete! Starting game...');
|
console.log('🎬 Intro complete! Starting game...');
|
||||||
|
|
||||||
// Fade out music
|
// Fade out music (if exists)
|
||||||
this.tweens.add({
|
if (this.noirMusic) {
|
||||||
targets: this.noirMusic,
|
this.tweens.add({
|
||||||
volume: 0,
|
targets: this.noirMusic,
|
||||||
duration: 2000,
|
volume: 0,
|
||||||
onComplete: () => this.noirMusic.stop()
|
duration: 2000,
|
||||||
});
|
onComplete: () => this.noirMusic.stop()
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Fade to black
|
// Fade to black
|
||||||
this.cameras.main.fadeOut(2000, 0, 0, 0);
|
this.cameras.main.fadeOut(2000, 0, 0, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user