连接服务器改为加载完成的时候

This commit is contained in:
MrZ626
2021-03-27 22:15:14 +08:00
parent 01f779ef37
commit 783defbbed
2 changed files with 4 additions and 3 deletions

View File

@@ -176,6 +176,10 @@ local loadingThread=coroutine.create(function()
end
STAT.run=STAT.run+1
LOADED=true
--Connect to server
TASK.new(TICK_WS_app)
--[[TODO
WS.send("user",JSON.encode{
id=USER.id,

View File

@@ -44,9 +44,6 @@ function scene.sceneInit()
PLY.newDemoPlayer(1)
PLAYERS[1]:setPosition(520,140,.8)
love.keyboard.setKeyRepeat(false)
--Connect to server
TASK.new(TICK_WS_app)
end
function scene.sceneBack()
love.keyboard.setKeyRepeat(true)