修复溅射特效位置偏移

This commit is contained in:
MrZ626
2020-11-26 17:14:55 +08:00
parent 521dea8c0e
commit 89bde6e6a1
2 changed files with 8 additions and 7 deletions

View File

@@ -83,15 +83,16 @@ function Player.createMoveFX(P,dir)
end
function Player.createSplashFX(P,h)
local L=P.field[h]
local y=P.fieldY+P.size*(P.fieldOff.y+P.fieldBeneath+P.fieldUp+585)
local size=P.size
local y=P.fieldY+size*(P.fieldOff.y+P.fieldBeneath+P.fieldUp+615)
for x=1,10 do
local c=L[x]
if c>0 then
SYSFX.newCell(
3-P.gameEnv.splashFX*.5,
2.5-P.gameEnv.splashFX*.4,
SKIN.curText[c],
1,
P.fieldX+30*x-15,y-30*h,
size,
P.fieldX+(30*x-15)*size,y-30*h*size,
rnd()*5-2.5,rnd()*-1,
0,.6
)