This commit is contained in:
2026-04-26 23:25:37 +02:00
parent b660429e3c
commit 325ed52479
16 changed files with 838 additions and 78 deletions

View File

@@ -62,6 +62,11 @@ export default class TwinBondSystem {
triggerBond() {
this.isActive = true;
// Oddaj event za AccessibilityManager (za Deaf Mode Purple HUD glow)
if (this.scene.game) {
this.scene.game.events.emit('twinBondPulse');
}
// Zaustavi Kaja za kratek čas (šok)
if (this.scene.kai) {
@@ -76,7 +81,9 @@ export default class TwinBondSystem {
const W = this.scene.cameras.main.width;
const H = this.scene.cameras.main.height;
this.flashOverlay.clear();
this.flashOverlay.fillStyle(0x3a0055, 0.85); // Temno vijolična
let alpha = this.scene.accessState?.autismMode ? 0.2 : 0.85; // Omehčan za avtizem
this.flashOverlay.fillStyle(0x3a0055, alpha); // Temno vijolična
this.flashOverlay.fillRect(0, 0, W, H);
// Skrijemo čez 0.15s