#61 Remote map chunk storage and equesting working, waiting for renderer

This commit is contained in:
Danielv123 committed 2017-12-10 20:55:53 +01:00
1 parent 8fce9a2cfe
commit eba982836c
3 files changed
+40 -5

No files matched your search

+9 -1
View File
@@ -1,5 +1,13 @@
var socket = io.connect('http://localhost:8080');
socket.on('hello', function (data) {
console.log(data);
socket.emit('registerSlaveMappper', { instanceID: 'data' });
socket.emit("registerMapRequester", {instanceID: '1611985668'});
socket.on("displayChunk", function(chunk){
console.log(chunk)
});
});
function requestChunk(x,y){
socket.emit('requestChunk', {x:x, y:y, instanceID: '1611985668'});
}