🔧 FIXES: Main Menu + Faster Transitions!
✅ FIX 1: INTRO → MAIN MENU - Changed: Intro now goes to StoryScene (not GameScene) - Player sees main menu after intro - Can choose 'New Game' properly ✅ FIX 2: LESS BLACK GAPS - Fade-in: 2s → 1s (50% faster!) - Glitch start: -500ms → -300ms (earlier) - Frame fade: 100ms → 50ms (faster) - Photo glitch: 50ms → 30ms (faster) - RGB flash: 50/100/150ms → 30/60/90ms (faster) - Final fade: 200ms → 100ms (faster) RESULT: Much smoother transitions, less black screen! NEXT: Kai age fix (14 years) + better voices!
This commit is contained in:
@@ -212,7 +212,7 @@ class IntroScene extends Phaser.Scene {
|
||||
// Fade to GameScene
|
||||
this.cameras.main.fadeOut(500, 0, 0, 0);
|
||||
this.cameras.main.once('camerafadeoutcomplete', () => {
|
||||
this.scene.start('GameScene');
|
||||
this.scene.start('StoryScene'); // Main Menu
|
||||
});
|
||||
}
|
||||
|
||||
@@ -437,7 +437,7 @@ class IntroScene extends Phaser.Scene {
|
||||
if (this.ambientAudio) this.ambientAudio.stop();
|
||||
this.cameras.main.fadeOut(1000, 0, 0, 0);
|
||||
this.cameras.main.once('camerafadeoutcomplete', () => {
|
||||
this.scene.start('GameScene');
|
||||
this.scene.start('StoryScene'); // Main Menu
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -524,41 +524,41 @@ class IntroScene extends Phaser.Scene {
|
||||
photo.setTint(0x66ff66);
|
||||
}
|
||||
|
||||
// 2 SECOND FADE-IN
|
||||
// FASTER FADE-IN (less black!)
|
||||
this.tweens.add({
|
||||
targets: [photo, frame],
|
||||
alpha: { from: 0, to: 1 },
|
||||
duration: 2000,
|
||||
duration: 1000, // Was 2000 - now faster!
|
||||
ease: 'Power2.easeOut'
|
||||
});
|
||||
|
||||
// GLITCH-OUT transition
|
||||
this.time.delayedCall(duration - 500, () => {
|
||||
// GLITCH-OUT transition (earlier start!)
|
||||
this.time.delayedCall(duration - 300, () => { // Was 500 - now earlier!
|
||||
if (this.currentPolaroid) {
|
||||
// Frame fades first
|
||||
// Frame fades first (faster!)
|
||||
this.tweens.add({
|
||||
targets: frame,
|
||||
alpha: 0,
|
||||
duration: 100
|
||||
duration: 50 // Was 100 - now faster!
|
||||
});
|
||||
|
||||
// Photo glitches
|
||||
// Photo glitches (faster!)
|
||||
this.tweens.add({
|
||||
targets: photo,
|
||||
x: { from: photo.x - 10, to: photo.x + 10 },
|
||||
duration: 50,
|
||||
duration: 30, // Was 50 - now faster!
|
||||
repeat: 5,
|
||||
yoyo: true,
|
||||
onComplete: () => {
|
||||
// RGB flash
|
||||
// RGB flash (faster!)
|
||||
photo.setTint(0xff0000);
|
||||
this.time.delayedCall(50, () => photo.setTint(0x00ff00));
|
||||
this.time.delayedCall(100, () => photo.setTint(0x0000ff));
|
||||
this.time.delayedCall(150, () => {
|
||||
this.time.delayedCall(30, () => photo.setTint(0x00ff00)); // Was 50
|
||||
this.time.delayedCall(60, () => photo.setTint(0x0000ff)); // Was 100
|
||||
this.time.delayedCall(90, () => { // Was 150
|
||||
this.tweens.add({
|
||||
targets: photo,
|
||||
alpha: 0,
|
||||
duration: 200
|
||||
duration: 100 // Was 200 - faster!
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user