整理代码,较复杂的单行if-then-end拆成多行
This commit is contained in:
@@ -142,7 +142,9 @@ function scene.keyDown(key)
|
||||
end
|
||||
|
||||
function scene.update(dt)
|
||||
if sure>0 then sure=sure-dt end
|
||||
if sure>0 then
|
||||
sure=sure-dt
|
||||
end
|
||||
end
|
||||
|
||||
function scene.draw()
|
||||
|
||||
Reference in New Issue
Block a user