Comments (1)
Yes, intX just indicates how many bytes you need. In my opinion this is bad, since the range (e.g. bytes 3-5) already tells you that and often you get floating-point data and not an integer.
Yes. Just read the 3 bytes, divide the by 5 and you've got the x coordinate.
(0|0) is top-left, with gr being the game_radius from the init-packet, (2_gr | 2_gr) is bottom-right.
There are generally no negative values, so everything is unsigned.
from slither.io-protocol.
Related Issues (20)
- Calculating fpsls and fmlts on server HOT 4
- SaveVictoryMessage: Is there something missing? HOT 2
- What's the difference between the different case letters? HOT 2
- Help HOT 2
- Packet 'v' doesn't work on it's own HOT 2
- How do first 2 byte's of each message work? HOT 33
- Movement packet "g", how does it work? HOT 1
- How should sector's be created on the server? HOT 15
- angle to radians? HOT 2
- Protocol 10: connect HOT 1
- How to get the pre-init response in nodejs for bots to send HOT 3
- How to get the snakes mouse pos HOT 2
- How to get Snake's head coordinate HOT 9
- The Position of the snake is not updating in my debug userscript and other question HOT 2
- Protocol version 11 / custom skins
- Serverbound / clientbound HOT 1
- slither.io servers no longer accepting protocol 10 HOT 6
- Update to protocol 12 HOT 8
- Not getting all websocket messages HOT 6
- Custom skin colors? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slither.io-protocol.