From bb3de2c3965fe39a505338c1673e5c8750f3c605 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 8 Mar 2021 15:48:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=BB=E5=BC=80=E5=8A=A0=E8=BD=BD=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E6=97=B6=E6=8C=89=E4=BD=8FR=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=E5=91=BD=E4=BB=A4=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/load.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/parts/scenes/load.lua b/parts/scenes/load.lua index 2e06d4f2..d03b9657 100644 --- a/parts/scenes/load.lua +++ b/parts/scenes/load.lua @@ -1,4 +1,5 @@ local gc=love.graphics +local kb=love.keyboard local int,sin=math.floor,math.sin @@ -148,6 +149,7 @@ function scene.sceneInit() shadePhase2=6.26*math.random() skip=0--Skip time locked=SETTING.appLock + kb.setKeyRepeat(false) end function scene.sceneBack() love.event.quit() @@ -213,9 +215,14 @@ function scene.update(dt) openTime=openTime+.26 skip=skip-1 end - if openTime>=3.26 then - openTime=3.26 - SCN.swapTo("intro") + if openTime>=3.26 and not SCN.swapping then + if kb.isDown("r")then + SCN.push("intro") + SCN.swapTo("app_cmd") + else + SCN.swapTo("intro") + end + love.keyboard.setKeyRepeat(true) end end end