test1
This commit is contained in:
@@ -511,6 +511,7 @@ function love.run()
|
|||||||
if SCN.swapping then SCN.swapUpdate()end--Scene swapping animation
|
if SCN.swapping then SCN.swapUpdate()end--Scene swapping animation
|
||||||
WIDGET.update()--Widgets animation
|
WIDGET.update()--Widgets animation
|
||||||
LOG.update()
|
LOG.update()
|
||||||
|
WS.update()
|
||||||
|
|
||||||
--DRAW
|
--DRAW
|
||||||
if not MINI()then
|
if not MINI()then
|
||||||
|
|||||||
@@ -44,6 +44,9 @@ 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)
|
||||||
@@ -81,7 +84,6 @@ function scene.keyDown(key)
|
|||||||
TEXT.show(text.notFinished,640,450,60,"flicker")
|
TEXT.show(text.notFinished,640,450,60,"flicker")
|
||||||
SFX.play("finesseError")
|
SFX.play("finesseError")
|
||||||
elseif LOGIN then
|
elseif LOGIN then
|
||||||
--[[TODO
|
|
||||||
if USER.accessToken then
|
if USER.accessToken then
|
||||||
WS.send("app",JSON.encode{
|
WS.send("app",JSON.encode{
|
||||||
opration="access",
|
opration="access",
|
||||||
@@ -92,10 +94,9 @@ function scene.keyDown(key)
|
|||||||
WS.send("app",JSON.encode{
|
WS.send("app",JSON.encode{
|
||||||
opration="access",
|
opration="access",
|
||||||
email=USER.email,
|
email=USER.email,
|
||||||
authToken=USER.authToken,
|
authToken=USER.authToken,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
]]
|
|
||||||
else
|
else
|
||||||
SCN.go("login")
|
SCN.go("login")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user