From d1d2def4b0195375ff2a80a62ef0ca18b28f1095 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 8 Mar 2021 12:43:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BD=AF=E4=BB=B6=E9=94=81?= =?UTF-8?q?=E6=8C=89=E6=96=B9=E6=8B=AC=E5=8F=B7=E5=92=8C=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E9=BC=A0=E6=A0=87=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/load.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/parts/scenes/load.lua b/parts/scenes/load.lua index 63e5834f..84808700 100644 --- a/parts/scenes/load.lua +++ b/parts/scenes/load.lua @@ -148,14 +148,14 @@ function scene.sceneBack() love.event.quit() end -function scene.keyDown(k) - if k=="escape"then +function scene.keyDown(key) + if key=="escape"then SCN.back() - elseif k=="s"then + elseif key=="s"then skip=999 - elseif locked and("12345679"):match(k)then - k=tonumber(k) - light[3*k]=not light[3*k] + elseif locked and("12345679"):match(key,nil,false)then + key=tonumber(key) + light[3*key]=not light[3*key] if light[6]and light[18]then locked=false end @@ -175,7 +175,7 @@ function scene.mouseDown(x,y) end end end - scene.keyDown() + scene.keyDown("mouse") end scene.touchDown=scene.mouseDown