Rowan Harley

Results 53 comments of Rowan Harley

Ok, so I think I found the problem. Initially, the body's x and y are sent as Int24's. This means they're gonna be big numbers. position.js is looking for Int8's...

ok, thanks! I'll check if that fixes it!

Ok, after fixing that, the snake barely moves and when it does, it moves in sudden jerks

I changed `broadcast(messages.position.build(conn.id, conn.snake.body.x, conn.snake.body.y));` to `broadcast(messages.position.build(conn.id, (conn.snake.body.x / 5), (conn.snake.body.y / 5)));`

I'm using the original slither.io client. I only see the jerking client-side only although I have no debug statements that would come up server-side

The angle is 0 @Mat2095 (sorry for late reply)

There is no snake.scang or snake.spang in my code. Is there a default value for them?

@Mat2095 Is that the server-side code or do I need to use the opposites of that?

Just updated the code. Still getting the jerk bug

no. It's position.js that's the problem