整理场地晃动相关代码

This commit is contained in:
MrZ626
2021-08-21 01:56:29 +08:00
parent 02c4655f0d
commit 961cf347da
4 changed files with 21 additions and 16 deletions

View File

@@ -631,9 +631,9 @@ do
sfx='rotatekick'
if P.gameEnv.shakeFX then
if d==1 or d==3 then
P.fieldOff.va=P.fieldOff.va+(2-d)*P.gameEnv.shakeFX*6e-3
P.fieldOff.va=P.fieldOff.va+(2-d)*6e-3
else
P.fieldOff.va=P.fieldOff.va+P:getCenterX()*P.gameEnv.shakeFX*3e-3
P.fieldOff.va=P.fieldOff.va+P:getCenterX()*3e-3
end
end
else