修改入场动画运动曲线

This commit is contained in:
MrZ626
2020-12-14 08:11:04 +08:00
parent b423d0346b
commit 1e7ee927c4
2 changed files with 3 additions and 2 deletions

View File

@@ -475,8 +475,9 @@ function loadGame(M,ifQuickPlay)--Load a mode and go to game scene
end
function initPlayerPosition()--Set initial position for every player
local L=PLAYERS.alive
local y=#L<=5 and 360 or -62
for i=1,#L do
L[i]:setPosition(640,-62,0)
L[i]:setPosition(640,y,0)
end
resetPlayerPosition()
end

View File

@@ -159,7 +159,7 @@ local function task_movePosition(P,x,y,size)
P:setPosition(x,y,size)
return true
else
d=max(.08-lg(d)*.02,.016)
d=max(.085-lg(d)*.02,.03)
x1=x1+(x-x1)*d
y1=y1+(y-y1)*d
size1=size1+(size-size1)*d