联网推进(修改玩家退出机制,部分联网命令增加超时时间)

This commit is contained in:
MrZ626
2021-04-08 22:23:19 +08:00
parent 8a1a3b971f
commit bdf1ce640c
2 changed files with 32 additions and 25 deletions

View File

@@ -21,8 +21,6 @@ local touchMoveLastFrame=false
local scene={}
function scene.sceneBack()
NET.signal_quit()
NET.wsclose_stream()
love.keyboard.setKeyRepeat(true)
end
function scene.sceneInit()
@@ -78,6 +76,7 @@ end
function scene.keyDown(key)
if key=="escape"then
if TIME()-lastBackTime<1 then
NET.signal_quit()
SCN.back()
else
lastBackTime=TIME()