From c1e0389e44bc933c14d47cf0902d7f722d442d44 Mon Sep 17 00:00:00 2001 From: andrey Date: Sun, 6 Sep 2026 22:41:18 +0300 Subject: [PATCH] =?UTF-8?q?HUD=20=D0=B2=D1=8B=D0=B2=D0=B0=D0=B6=D0=B8?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F:=20escape-=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D0=BE=D1=81=D0=BA=D0=B0=20=D1=80=D0=B8=D1=81=D1=83=D0=B5=D1=82?= =?UTF-8?q?=D1=81=D1=8F=20=D0=BF=D0=BE=D0=B2=D0=B5=D1=80=D1=85=20=D1=81?= =?UTF-8?q?=D0=B8=D0=BD=D0=B5=D0=B9=20=D0=B8=20=D1=81=D0=BB=D0=B5=D0=B2?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=D0=BF=D1=80=D0=B0=D0=B2=D0=BE=20(=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D1=8C=D1=88=D0=B5=20=E2=80=94=20=D1=81=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=B0=20=D0=BD=D0=B0=D0=BB=D0=B5=D0=B2=D0=BE=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=B4=20=D1=81=D0=B8=D0=BD=D0=B5=D0=B9).=20117/117?= =?UTF-8?q?,=20exit=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index ab04661..c0db757 100644 --- a/index.html +++ b/index.html @@ -1661,12 +1661,6 @@ function drawMeters(){ // --- дистанция (снизу) --- const dw=W-96, dx=22, dy=H-52, dh=13; ctx.fillStyle='rgba(0,0,0,0.35)'; rr(dx,dy,dw,dh,7); ctx.fill(); - // escape: красная заливка справа налево (рыба ускользает) - if(reel.escape>0.01){ - const ew=(dw-4)*reel.escape; - ctx.fillStyle='rgba(231,76,60,0.7)'; - rr(dx+dw-2-ew,dy+2,ew,dh-4,5); ctx.fill(); - } // rem = доля оставшейся дистанции: полоска «сгорает» к лодке, рыбка на её конце const rem=Math.max(0,Math.min(1,reel.d/reel.d0)); if(rem>0.01){ @@ -1675,6 +1669,12 @@ function drawMeters(){ ctx.fillStyle=dg; rr(dx+2,dy+2,Math.max(2,(dw-4)*rem),dh-4,5); ctx.fill(); } + // escape: красная заливка поверх синей, слева направо (рыба ускользает) + if(reel.escape>0.01){ + const ew=(dw-4)*reel.escape; + ctx.fillStyle='rgba(231,76,60,0.7)'; + rr(dx+2,dy+2,ew,dh-4,5); ctx.fill(); + } // рыбка-маркер на конце полоски const fx=dx+2+(dw-4)*rem; ctx.font='20px system-ui'; ctx.textAlign='center';