消除方块运动路径微调

This commit is contained in:
MrZ626
2020-11-26 15:12:25 +08:00
parent e6cdb8dbb1
commit eefd6af5a4
2 changed files with 7 additions and 7 deletions

View File

@@ -31,11 +31,11 @@ FXupdate.rectRipple=normUpdate
FXupdate.shade=normUpdate FXupdate.shade=normUpdate
function FXupdate.cell(S,dt) function FXupdate.cell(S,dt)
if S.vx then if S.vx then
S.x=S.x+S.vx S.x=S.x+S.vx*S.rate
S.y=S.y+S.vy S.y=S.y+S.vy*S.rate
if S.ax then if S.ax then
S.vx=S.vx+S.ax S.vx=S.vx+S.ax*S.rate
S.vy=S.vy+S.ay S.vy=S.vy+S.ay*S.rate
end end
end end
S.t=S.t+dt*S.rate S.t=S.t+dt*S.rate

View File

@@ -87,13 +87,13 @@ function Player.createSplashFX(P,h)
for x=1,10 do for x=1,10 do
local c=L[x] local c=L[x]
if c>0 then if c>0 then
local v,a=1+rnd(),rnd()*6.28
SYSFX.newCell( SYSFX.newCell(
6-P.gameEnv.splashFX, 3-P.gameEnv.splashFX*.5,
SKIN.curText[c], SKIN.curText[c],
1, 1,
P.fieldX+30*x-15,y-30*h, P.fieldX+30*x-15,y-30*h,
v*cos(a),v*sin(a) rnd()*5-2.5,rnd()*-1,
0,.6
) )
end end
end end