Smart Subtitles

This commit is contained in:
2025-12-12 13:55:54 +01:00
parent 8b005065fe
commit 42074d3169
5 changed files with 742 additions and 0 deletions

View File

@@ -468,6 +468,10 @@ class GameScene extends Phaser.Scene {
console.log('♿ Initializing Accessibility System...');
this.accessibilitySystem = new AccessibilitySystem(this);
// Initialize Visual Sound Cue System (for deaf/hard-of-hearing players)
console.log('👁️ Initializing Visual Sound Cue System...');
this.visualSoundCueSystem = new VisualSoundCueSystem(this);
// Show epilepsy warning on first launch
const hasSeenWarning = localStorage.getItem('novafarma_epilepsy_warning');
if (!hasSeenWarning) {
@@ -834,6 +838,9 @@ class GameScene extends Phaser.Scene {
// NPC Spawner Update
if (this.npcSpawner) this.npcSpawner.update(delta);
// Visual Sound Cue System Update
if (this.visualSoundCueSystem) this.visualSoundCueSystem.update();
// Update NPCs
for (const npc of this.npcs) {
if (npc.update) npc.update(delta);