连接服务器改为加载完成的时候
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user