整理代码习惯,常量字符串改用单引号,可能有遗漏
This commit is contained in:
@@ -13,8 +13,8 @@ scene.touchDown=NULL
|
||||
function scene.update(dt)
|
||||
timer=timer-dt*.8
|
||||
if timer<0 then
|
||||
SFX.play("click")
|
||||
SCN.swapTo("game","none")
|
||||
SFX.play('click')
|
||||
SCN.swapTo('game','none')
|
||||
end
|
||||
end
|
||||
|
||||
@@ -26,14 +26,14 @@ function scene.draw()
|
||||
|
||||
--Gray screen cover
|
||||
gc.setColor(.15,.15,.15,timer*1.26)
|
||||
gc.push("transform")
|
||||
gc.push('transform')
|
||||
gc.origin()
|
||||
gc.rectangle("fill",0,0,SCR.w,SCR.h)
|
||||
gc.rectangle('fill',0,0,SCR.w,SCR.h)
|
||||
gc.pop()
|
||||
|
||||
--Pie counter
|
||||
gc.setColor(1,1,1,4*(1-timer))
|
||||
gc.arc("fill","pie",640,360,160,-1.5708,timer*6.2832-1.5708)
|
||||
gc.arc('fill','pie',640,360,160,-1.5708,timer*6.2832-1.5708)
|
||||
end
|
||||
|
||||
return scene
|
||||
Reference in New Issue
Block a user