触手扫击伸长长度+50%(1.6->2.4倍,最长96px)
This commit is contained in:
parent
946f0e072d
commit
7e32320ee8
@ -41,11 +41,11 @@ function tentPose(tn,side,tB){ // 返回{ang(0=正下,side向为正),stretch,g
|
|||||||
const idle=Math.sin(tB*0.06)*0.07*side;
|
const idle=Math.sin(tB*0.06)*0.07*side;
|
||||||
if(tn.warn>0){const f=1-tn.warn/50,e=f*f; // 前摇:向扫击反方向后拉蓄力
|
if(tn.warn>0){const f=1-tn.warn/50,e=f*f; // 前摇:向扫击反方向后拉蓄力
|
||||||
return{ang:idle*(1-f)+side*0.73*e+Math.sin(tB*0.9)*0.012*e,stretch:1+e*0.15,glow:f};}
|
return{ang:idle*(1-f)+side*0.73*e+Math.sin(tB*0.9)*0.012*e,stretch:1+e*0.15,glow:f};}
|
||||||
if(tn.act>17){const f=(45-tn.act)/28,e=f*f*f; // 扫击:加速挥出(右下→左下60°扇形)
|
if(tn.act>17){const f=(45-tn.act)/28,e=f*f*f; // 扫击:加速挥出(右下→左下60°扇形,伸长+50%)
|
||||||
return{ang:side*(0.73-e*1.31),stretch:1.15+e*0.45,glow:1};}
|
return{ang:side*(0.73-e*1.31),stretch:1.15+e*1.25,glow:1};}
|
||||||
if(tn.act>0){return{ang:side*(-0.58)+Math.sin(tB*1.2)*0.05*(tn.act/17),stretch:1.6,glow:1};} // 顿挫
|
if(tn.act>0){return{ang:side*(-0.58)+Math.sin(tB*1.2)*0.05*(tn.act/17),stretch:2.4,glow:1};} // 顿挫
|
||||||
const f=1-tn.rec/40,e=1-(1-f)*(1-f); // 收回
|
const f=1-tn.rec/40,e=1-(1-f)*(1-f); // 收回
|
||||||
return{ang:side*(-0.58)+(idle-side*(-0.58))*e,stretch:1.6-0.6*e,glow:1-e};}
|
return{ang:side*(-0.58)+(idle-side*(-0.58))*e,stretch:2.4-1.4*e,glow:1-e};}
|
||||||
function tentSegs(b,side,opF){ // 触手7节局部坐标(相对Boss中心),逐节延迟形成鞭弧
|
function tentSegs(b,side,opF){ // 触手7节局部坐标(相对Boss中心),逐节延迟形成鞭弧
|
||||||
const pts=[];opF=opF===undefined?1:opF;
|
const pts=[];opF=opF===undefined?1:opF;
|
||||||
for(let i=0;i<7;i++){
|
for(let i=0;i<7;i++){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user