连接服务器改为加载完成的时候
This commit is contained in:
@@ -176,6 +176,10 @@ local loadingThread=coroutine.create(function()
|
|||||||
end
|
end
|
||||||
STAT.run=STAT.run+1
|
STAT.run=STAT.run+1
|
||||||
LOADED=true
|
LOADED=true
|
||||||
|
|
||||||
|
--Connect to server
|
||||||
|
TASK.new(TICK_WS_app)
|
||||||
|
|
||||||
--[[TODO
|
--[[TODO
|
||||||
WS.send("user",JSON.encode{
|
WS.send("user",JSON.encode{
|
||||||
id=USER.id,
|
id=USER.id,
|
||||||
|
|||||||
@@ -44,9 +44,6 @@ function scene.sceneInit()
|
|||||||
PLY.newDemoPlayer(1)
|
PLY.newDemoPlayer(1)
|
||||||
PLAYERS[1]:setPosition(520,140,.8)
|
PLAYERS[1]:setPosition(520,140,.8)
|
||||||
love.keyboard.setKeyRepeat(false)
|
love.keyboard.setKeyRepeat(false)
|
||||||
|
|
||||||
--Connect to server
|
|
||||||
TASK.new(TICK_WS_app)
|
|
||||||
end
|
end
|
||||||
function scene.sceneBack()
|
function scene.sceneBack()
|
||||||
love.keyboard.setKeyRepeat(true)
|
love.keyboard.setKeyRepeat(true)
|
||||||
|
|||||||
Reference in New Issue
Block a user