From c858801268e7e2779973117c19d2891d5e2e782e Mon Sep 17 00:00:00 2001 From: deploy Date: Sat, 7 Nov 2026 10:35:12 +0000 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=AE=9D=E5=AE=9D=E8=B8=A2?= =?UTF-8?q?=EF=BC=9A=E5=85=88=E5=8F=AA=E9=BC=93=E5=8C=85=EF=BC=8C0.7=20?= =?UTF-8?q?=E7=A7=92=E5=90=8E=E5=B0=8F=E8=84=9A=E4=B8=AB=E6=89=8D=E6=85=A2?= =?UTF-8?q?=E6=85=A2=E6=B5=AE=E7=8E=B0=EF=BC=88v26110649=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- index.html | 4 ++-- js/app.js | 2 +- js/bump.js | 13 +++++++------ 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index 7f74eeb..3d14f52 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ 兜爸心选 · 孕育陪伴 - + @@ -2732,7 +2732,7 @@ html.night .rs-pan .rp-card{background:rgba(255,255,255,.06);border-color:rgba(2 })(); - + diff --git a/js/app.js b/js/app.js index c7e5f3d..f32b7b6 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ (function () { 'use strict'; /* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */ - var VER = '26110648'; + var VER = '26110649'; const $ = (s, c) => (c || document).querySelector(s); const $$ = (s, c) => Array.from((c || document).querySelectorAll(s)); diff --git a/js/bump.js b/js/bump.js index dac5b00..cdb0628 100644 --- a/js/bump.js +++ b/js/bump.js @@ -472,15 +472,16 @@ for (const [tx, ty, trx, try_] of TOES) { cx.moveTo(tx + dx + trx, ty + dy); cx.ellipse(tx + dx, ty + dy, trx, try_, 0, 0, 7); } cx.fill(); } - function footprint(x, y, rx, ry, ang, k) { + function footprint(x, y, rx, ry, ang, k, life) { /* 11-07 用户纠正:「要按之前的踢法——先从页面底下把页面踢得鼓起来,隐隐约约,之后才能看清一个小小的脚丫子」 - → 脚印缩小到鼓包的一半、软边,顶到六成以上才慢慢浮出来,到最高点也只是浅浅一层(不是贴上去的脚丫图) */ - if (k < .6) return; - const t = (k - .6) / .4, a = t * t * (3 - 2 * t), f = .5; + → 前 0.7 秒只有鼓包,之后 1 秒里小脚丫才慢慢浮出来;脚印缩小到鼓包的一半、软边,最清楚时也只是浅浅一层(不是贴上去的脚丫图);鼓包收回去时跟着淡掉 */ + if (k < .5 || life < .7) return; + const sm = v => (v = Math.min(1, Math.max(0, v)), v * v * (3 - 2 * v)); + const a = sm((k - .5) / .5) * sm((life - .7) / 1), f = .5; cx.save(); cx.translate(x, y); cx.rotate(ang); cx.scale(rx * f, ry * f); cx.shadowBlur = 6 * dpr; cx.fillStyle = cx.shadowColor = 'rgba(255,255,255,' + (.2 * a).toFixed(3) + ')'; soleShape(-.03, -.035); - cx.fillStyle = cx.shadowColor = 'rgba(120,72,58,' + (.2 * a).toFixed(3) + ')'; soleShape(0, 0); + cx.fillStyle = cx.shadowColor = 'rgba(120,72,58,' + (.24 * a).toFixed(3) + ')'; soleShape(0, 0); cx.restore(); } function paint() { @@ -500,7 +501,7 @@ [-.07, -.09, .2, 'rgba(255,255,255,' + (.5 * k).toFixed(3) + ')']]) ]); // 小脚丫顶上来时,隐隐约约带出一个脚印:极淡、全是软边,峰值时才看得出,凑近看像有像无 - if (P === PARTS.foot || P === PARTS.kick) footprint(ft.x + ft.ox + ox, ft.y + ft.oy + oy, P.rx * sp, P.ry * sp, ft.ang + (mode === 'show' ? ft.wob : 0), Math.min(H / P.amp, 1)); + if (P === PARTS.foot || P === PARTS.kick) footprint(ft.x + ft.ox + ox, ft.y + ft.oy + oy, P.rx * sp, P.ry * sp, ft.ang + (mode === 'show' ? ft.wob : 0), Math.min(H / P.amp, 1), ft.life); } const D = pk.d.v; if (D < -.2) {