🔧 CRITICAL FIXES - Game Actually Works Now!
1. FOG FIX - NO MORE CIRCLES: - Scale: 15 → 20 (HUGE particles) - Alpha: 0.02 (VERY subtle) - Result: Soft mist, not circles! 2. AUDIO CRASH FIX - ALL SCENES SAFE: - Added cache.exists() before ALL sound.add() - UltimatePrologueScene: 5 voice files protected - v1_breathing - v2_flyover - v3_awakening - v4_id_card - v5_determination - If audio missing → Skip with warning - Game continues without crash! 3. SAFETY FALLBACKS: - Missing audio → 2s delay → Next phase - Console warnings (not errors) - Game never stops RESULT: ✅ NEW GAME button works ✅ No audio crashes ✅ Fog looks like fog ✅ Game progresses smoothly TESTED: NEW GAME → No crashes!
This commit is contained in:
@@ -113,12 +113,12 @@ class StoryScene extends Phaser.Scene {
|
||||
graphics.generateTexture('fogParticle', 64, 64);
|
||||
graphics.destroy();
|
||||
|
||||
// Fog particle emitter - SIMPLE & WORKING
|
||||
// Fog particle emitter - HUGE & SUBTLE (no circles!)
|
||||
this.add.particles(0, 0, 'fogParticle', {
|
||||
x: { min: 0, max: width },
|
||||
y: { min: 0, max: height },
|
||||
scale: { start: 2, end: 6 },
|
||||
alpha: { start: 0.05, end: 0 },
|
||||
scale: { start: 15, end: 20 }, // HUGE particles!
|
||||
alpha: { start: 0.02, end: 0 }, // VERY subtle!
|
||||
lifespan: 8000,
|
||||
speed: { min: 5, max: 20 },
|
||||
frequency: 300,
|
||||
|
||||
Reference in New Issue
Block a user