rattlesnake icon indicating copy to clipboard operation
rattlesnake copied to clipboard

What type of packet uses this client?

Open SrNicolas opened this issue 8 years ago • 3 comments

In the slither.IO protocol there is two types like "g" and "G", what does this client use?

SrNicolas avatar Jun 08 '16 18:06 SrNicolas

its g

'use strict';

// Position Message // https://github.com/ClitherProject/Slither.io-Protocol/blob/master/Protocol.md#type_g_detail

// deflate the message

Object.defineProperty(exports, "__esModule", { value: true }); exports.deflate = deflate; function deflate(packet) { var id = packet.readInt16(); var x = packet.readInt16(); var y = packet.readInt16();

return { id: id, x: x, y: y }; }

its in dist/messages/ position.js

CupidStunts avatar Jun 08 '16 23:06 CupidStunts

Thanks!

SrNicolas avatar Jun 09 '16 16:06 SrNicolas

so it would be like this "var buffer = new Buffer(g)"; ???

SrNicolas avatar Jun 09 '16 16:06 SrNicolas