整理代码,返回需要二次确认的小程序统一用一个函数

This commit is contained in:
MrZ626
2021-11-29 22:39:20 +08:00
parent a4293624ab
commit e3db564a4b
12 changed files with 43 additions and 31 deletions

View File

@@ -262,11 +262,12 @@ function scene.keyDown(key,isRep)
elseif key=='z'or key=='x'then
love.mousepressed(ms.getPosition())
elseif key=='escape'then
if state~=1 or sure>.2 then
SCN.back()
if state~=1 then
if tryBack()then
SCN.back()
end
else
sure=1
MES.new('info',"Press again")
end
elseif state==0 then
if key=='q'then