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

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

@@ -109,11 +109,11 @@ local function merge()
end
if chosen>=5 then
SFX.play(
chosen>=9 and"ren_mega"or
chosen>=8 and"spin_3"or
chosen>=7 and"spin_2"or
chosen>=6 and"spin_1"or
"spin_0"
chosen>=9 and'ren_mega'or
chosen>=8 and'spin_3'or
chosen>=7 and'spin_2'or
chosen>=6 and'spin_1'or
'spin_0'
)
end
fallingTimer=fast and 8 or 12
@@ -157,7 +157,9 @@ function scene.keyDown(key,isRep)
fast=not fast
end
elseif key=='escape'then
SCN.back()
if tryBack()then
SCN.back()
end
end
end
function scene.mouseMove(x,y)