From bb9f7209ae8f59ecc953f6955d1b12de79960fb4 Mon Sep 17 00:00:00 2001 From: aevgarik Date: Sun, 24 May 2026 03:59:41 +0300 Subject: [PATCH] Post-codex-review-2: mobile controls, turbo bug, AI diff, favicon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Mobile match controls (codex #1 High): 3 touch zones внизу MatchScene (L / BOOST / R). Visible semi-transparent overlay'и; работает и на mouse, и на touch. Keyboard input теперь optional (this.keys?), не падает на headless mobile. - Turbo first-hit bug (codex #2): guard на lastHitTime > 0 — иначе первый удар по turbo в первую секунду давал 0 очков (now < 0 + 1000). - AI behavior diff (codex #3): добавлен PersonalityModifier (triggerDistBonus, reliabilityMul, reactionMul). Defensive: +reliability, -reaction. Aggressive: +trigger distance, -reliability. Ghost: 15% «эхо-double-swing» (обе стороны одновременно). Trickster уже имел jitter modifier. Поведенческие отличия теперь должны быть различимы за 5 матчей. - Favicon 404 (codex #4 Low): inline SVG favicon в index.html, no more console noise. Co-Authored-By: Claude Opus 4.7 --- index.html | 1 + src/ai/AIPlayer.ts | 27 +++++++--- src/ai/personalities/AggressiveAI.ts | 7 ++- src/ai/personalities/DefensiveAI.ts | 6 +++ src/ai/personalities/GhostAI.ts | 15 +++--- src/game/Bumper.ts | 6 ++- src/scenes/MatchScene.ts | 79 +++++++++++++++++++++++----- 7 files changed, 113 insertions(+), 28 deletions(-) diff --git a/index.html b/index.html index 1845bbf..9cda10d 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ + Пинбол-Дуэль