移除加载时可能的强制重启(防止ios出问题)

几处love退出改为去quit场景(防止ios出问题)
整理代码
框架跟进
This commit is contained in:
MrZ_26
2022-11-06 17:28:54 +08:00
parent d932febe89
commit f70edaac83
66 changed files with 252 additions and 312 deletions

View File

@@ -1,19 +1,19 @@
local scene={}
function scene.sceneInit()
if SYSTEM~="iOS" then
function scene.enter()
if SYSTEM=="iOS" then
MES.update(1e99)
Z.setPowerInfo(false)
Z.setClickFX(false)
VERSION.string=""
MES.new('error',"Please swipe up or press Home button to quit Techmino on iOS",1e99)
else
if math.random()>.0000626 then
love.timer.sleep(.26)
love.event.quit()
else
error("So lucky! 0.00626% to get this!! You can quit the game now.")
end
else
MES.update(1e99)
Z.setPowerInfo(false)
Z.setClickFX(false)
VERSION.string=""
MES.new('error',"Please swipe up or press Home button to quit Techmino on iOS",1e99)
end
end