From 43623609bdd95233ec52d995dc0581f43d922680 Mon Sep 17 00:00:00 2001 From: zizi Date: Fri, 12 Jun 2026 14:19:22 +0000 Subject: [PATCH] =?UTF-8?q?fix(wanglanmei-ref):=20render.js=E7=A6=BB?= =?UTF-8?q?=E5=BA=97=E6=91=86=E5=8A=A8=E5=88=86=E6=94=AFconst=20x=E6=94=B9?= =?UTF-8?q?let=E2=80=94=E2=80=94esbuild=E6=9E=84=E5=BB=BA=E9=97=A8?= =?UTF-8?q?=E9=80=AE=E7=9A=84=E7=9C=9Fbug(headless=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=9C=AA=E6=89=A7=E8=A1=8C=E5=88=B0=E8=AF=A5=E8=A1=8C),?= =?UTF-8?q?=E6=9C=AC=E6=9C=BAesbuild=E5=85=A8=E9=87=8F=E9=A2=84=E6=A3=80?= =?UTF-8?q?=E8=BF=87+49=E6=B5=8B=E4=BB=8D=E7=BB=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- game-runtime/games/wanglanmei-ref/src/render.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game-runtime/games/wanglanmei-ref/src/render.js b/game-runtime/games/wanglanmei-ref/src/render.js index 671f4e8c..0a41949d 100644 --- a/game-runtime/games/wanglanmei-ref/src/render.js +++ b/game-runtime/games/wanglanmei-ref/src/render.js @@ -342,7 +342,8 @@ function drawCustomers(g, pal, view) { const ageMs = view.nowMs - (view.customerBornMs[c.id] || view.nowMs); const walkT = clamp(ageMs / 400, 0, 1); const ease = view.fx.easing.backOut(walkT); - const x = slot.x + (1 - ease) * (W + 40 - slot.x); + // 注意:x 须为 let——离店摆动分支(下方 leaving)会原地 += 修正(esbuild 构建门曾逮 const 赋值)。 + let x = slot.x + (1 - ease) * (W + 40 - slot.x); let y = slot.y; // 宽限态(救单窗口):急促抖动暗示「快没了」。 if (c.mood === 'leaving') x += Math.sin(view.nowMs / 28) * 2.5;