From f07602b5336a954cf5ad54123245c3e74f3a541e Mon Sep 17 00:00:00 2001 From: "azykov@mail.ru" Date: Sat, 5 Sep 2026 11:58:44 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D1=82=D0=B0=D1=82=D0=B8=D1=81=D1=82?= =?UTF-8?q?=D0=B8=D0=BA=D0=B0=20=D0=BD=D0=B0=20=D1=8D=D0=BA=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B5=20=D1=81=D0=BC=D0=B5=D1=80=D1=82=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.css | 10 ++++++++++ src/components/GameMap.tsx | 6 ++++++ src/game/GameStore.ts | 31 ++++++++++++++++++++++++++++++- src/game/entities/Character.ts | 6 +++++- src/game/persistence.ts | 9 +++++++++ 5 files changed, 60 insertions(+), 2 deletions(-) diff --git a/src/App.css b/src/App.css index 1ca3d50..cc2e78c 100644 --- a/src/App.css +++ b/src/App.css @@ -376,6 +376,16 @@ padding: 0 20px; } +.game-over-overlay__stats { + font-size: 11px; + color: var(--text); + text-align: center; + line-height: 1.8; + display: flex; + flex-direction: column; + gap: 4px; +} + @keyframes chop-shake { 0%, 100% { transform: translate(0, 0) rotate(0deg); diff --git a/src/components/GameMap.tsx b/src/components/GameMap.tsx index 7008291..1a7fb5e 100644 --- a/src/components/GameMap.tsx +++ b/src/components/GameMap.tsx @@ -56,6 +56,12 @@ const GameOverOverlay = observer(function GameOverOverlay({
Вы прожили {store.day} {dayWord(store.day)}, но вас поймали кролики
+
+
Пройдено: {Math.round(store.character.distanceTraveled)} px
+
Срублено: {store.treesChoppedCount} деревьев, {store.bushesChoppedCount} кустов
+
Поймано кроликов: {store.rabbitsCaughtCount}
+
Заработано монет: {store.totalCoinsEarned.toFixed(1)}
+