From 6e6f206d876d58d2635b14f32c813604ac818d90 Mon Sep 17 00:00:00 2001 From: David Kotnik Date: Sat, 10 Jan 2026 14:29:49 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20FIXES:=20Main=20Menu=20+=20Faste?= =?UTF-8?q?r=20Transitions!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ 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! --- src/scenes/IntroScene.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/scenes/IntroScene.js b/src/scenes/IntroScene.js index 5235bb243..6320adb3a 100644 --- a/src/scenes/IntroScene.js +++ b/src/scenes/IntroScene.js @@ -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! }); }); }