整理代码习惯,常量字符串改用单引号,可能有遗漏
This commit is contained in:
@@ -13,11 +13,11 @@ function scene.sceneInit()
|
||||
animeType={}for i=1,8 do animeType[i]=rnd(5)end--Random animation type
|
||||
end
|
||||
|
||||
function scene.mouseDown(_,_,k)
|
||||
function scene.mouseDown()
|
||||
if newVersionLaunch then
|
||||
SCN.push(SETTING.simpMode and"main_simple"or"main")
|
||||
SCN.swapTo("history","fade")
|
||||
LOG.print(text.newVersion,"warn",COLOR.lB)
|
||||
SCN.swapTo('history','fade')
|
||||
LOG.print(text.newVersion,'warn',COLOR.lB)
|
||||
else
|
||||
SCN.go(SETTING.simpMode and"main_simple"or"main")
|
||||
end
|
||||
@@ -27,8 +27,8 @@ function scene.touchDown()
|
||||
end
|
||||
function scene.keyDown(key)
|
||||
if key=="escape"then
|
||||
VOC.play("bye")
|
||||
SCN.swapTo("quit","slowFade")
|
||||
VOC.play('bye')
|
||||
SCN.swapTo('quit','slowFade')
|
||||
else
|
||||
scene.mouseDown()
|
||||
end
|
||||
@@ -53,19 +53,19 @@ function scene.draw()
|
||||
gc.setLineWidth(4)
|
||||
end
|
||||
local L=title
|
||||
gc.push("transform")
|
||||
gc.push('transform')
|
||||
gc.translate(126,226)
|
||||
for i=1,8 do
|
||||
local t=t1-i*15
|
||||
if t>0 then
|
||||
gc.push("transform")
|
||||
gc.push('transform')
|
||||
gc.setColor(1,1,1,min(t*.025,1))
|
||||
titleTransform[animeType[i]](t,i)
|
||||
local dt=(t1+62-5*i)%300
|
||||
if dt<20 then
|
||||
gc.translate(0,math.abs(10-dt)-10)
|
||||
end
|
||||
gc.polygon("line",L[i])
|
||||
gc.polygon('line',L[i])
|
||||
gc.pop()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user