From 017e190e4affa0af20161d8fcbc4f4d779e92c1e Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 20 Jan 2021 20:11:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83=E5=8F=96=E6=B6=88=E6=9A=82?= =?UTF-8?q?=E5=81=9C=E5=8A=A8=E7=94=BB=EF=BC=8C=E6=B7=BB=E5=8A=A0=E9=9F=B3?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/depause.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/parts/scenes/depause.lua b/parts/scenes/depause.lua index ca745615..ed4f16f1 100644 --- a/parts/scenes/depause.lua +++ b/parts/scenes/depause.lua @@ -6,7 +6,7 @@ local scene={} local timer function scene.sceneInit() - timer=2 + timer=1 end scene.keyDown=NULL @@ -14,25 +14,29 @@ scene.mouseDown=NULL scene.touchDown=NULL function scene.update(dt) - timer=timer-dt + timer=timer-dt*.8 if timer<0 then + SFX.play("click") SCN.swapTo("play","none") end end function scene.draw() - if timer<1 then + --Game scene + if timer*1.5<1 then SCN.scenes.play.draw() end - gc.setColor(.15,.15,.15,timer) + --Grey screen cover + gc.setColor(.15,.15,.15,timer*1.5) gc.push("transform") gc.origin() gc.rectangle("fill",0,0,SCR.w,SCR.h) gc.pop() - gc.setColor(1,1,1,5*(2-timer)) - gc.arc("fill","pie",640,360,160,-1.5708,timer*3.1416-1.5708) + --Pie counter + gc.setColor(1,1,1,4*(1-timer)) + gc.arc("fill","pie",640,360,160,-1.5708,timer*6.2832-1.5708) end return scene \ No newline at end of file