整理代码,较复杂的单行if-then-end拆成多行
This commit is contained in:
@@ -36,7 +36,9 @@ function scene.update()
|
||||
local v=0
|
||||
for i=2,40 do v=v+i*(i-1)*.075/(t-keyTime[i])end
|
||||
speed=speed*.99+v*.01
|
||||
if speed>maxSpeed then maxSpeed=speed end
|
||||
if speed>maxSpeed then
|
||||
maxSpeed=speed
|
||||
end
|
||||
end
|
||||
|
||||
function scene.draw()
|
||||
|
||||
Reference in New Issue
Block a user