aboutsummaryrefslogtreecommitdiff
path: root/bin/client/main.lua
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-08-14 14:56:47 +0800
committerchai <chaifix@163.com>2018-08-14 14:56:47 +0800
commit5c9af043503f92852a1a765b6ecfbc1aea24d2e9 (patch)
treeeb371092c4137a672e7bfc13dc56ee777623ebfe /bin/client/main.lua
parent5162f84be0a4deb447c6ba1226722b049335d525 (diff)
*update
Diffstat (limited to 'bin/client/main.lua')
-rw-r--r--bin/client/main.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/client/main.lua b/bin/client/main.lua
index 65fb6aa..5d10e6a 100644
--- a/bin/client/main.lua
+++ b/bin/client/main.lua
@@ -13,12 +13,12 @@ end
]]
jin.core.onLoad = function()
- jin.net.init()
- socket = jin.net.Socket("TCP", "127.0.0.1", 8809)
+ -- jin.net.init()
+ -- socket = jin.net.Socket("TCP", "127.0.0.1", 8809)
- thread = jin.thread.Thread("asynReceive", asynReceive)
- thread:start()
- thread:send(1, socket)
+ -- thread = jin.thread.Thread("asynReceive", asynReceive)
+ -- thread:start()
+ -- thread:send(1, socket)
end
jin.core.onEvent = function(e)
@@ -32,11 +32,11 @@ end
local x = 0
local y = 0
jin.core.onUpdate = function(dt)
- if thread:receive(2) then
- local buf = thread:fetch(2)
- x, xl = buf:grabFloat(0)
- y, yl = buf:grabFloat(xl)
- end
+ -- if thread:receive(2) then
+ -- local buf = thread:fetch(2)
+ -- x, xl = buf:grabFloat(0)
+ -- y, yl = buf:grabFloat(xl)
+ -- end
-- local buf = jin.net.Buffer(0)
-- buf:append(x)