大量指数接近动画改为基于时间而不是帧
This commit is contained in:
@@ -280,13 +280,13 @@ function scene.touchDown(x)
|
||||
end
|
||||
end
|
||||
|
||||
function scene.update()
|
||||
function scene.update(dt)
|
||||
if state==1 then
|
||||
local t=TIME()
|
||||
time=t-startTime
|
||||
local v=0
|
||||
for i=2,20 do v=v+i*(i-1)*.3/(t-keyTime[i])end
|
||||
speed=speed*.99+v*.01
|
||||
speed=MATH.expApproach(speed,v,dt)
|
||||
if speed>maxSpeed then maxSpeed=speed end
|
||||
|
||||
if arcade then
|
||||
|
||||
Reference in New Issue
Block a user