GrumpyOet
GrumpyOet
the question is why that: ``` throw new Error('Int16 out of bound.'); ^ Error: Int16 out of bound. at Object.module.exports.writeInt16 (/Users/Luke/Desktop/Slither-Server/src/utils/message.js:20:13) ``` and why that: `at Object.exports.build (/Users/Luke/Desktop/Slither-Server/src/messages/position.js:12:15)` right?
no wait i think that the error is in the message.js file (maybe?)
Rowan what did you change?
i tried it to now the snake looks like a retard now
I think with the `broadcast(messages.position.build(conn.id, (conn.snake.body.x / 5), (conn.snake.body.y / 5)));` code the speed is fine but now we have need to fix the rotation of the snake
for what is this code `conn.snake.body.x += Math.round(Math.cos(conn.snake.direction.angle * 1.44 * Math.PI / 180) * 170);` rotation or something
Rowan i think you must use this code for the next version 0.0.5b2 and fix the retard snake for 0.0.5b2 to ......................,.,.,.,.,.,.,.,.,.,..,.,.,.,.,., \/ `broadcast(messages.position.build(conn.id, (conn.snake.body.x / 5), (conn.snake.body.y / 5)));`
Mat can you make a code for that?
If we can work from here then we only have need to fix rotation of the snake becaus the speed is good
Maybe you can take a look at this: `https://github.com/whxaxes/slither`