diff options
Diffstat (limited to 'bin/client/main.lua')
-rw-r--r-- | bin/client/main.lua | 20 |
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) |