Skip to content

Commit

Permalink
Upgraded to 0.0.5b5!
Browse files Browse the repository at this point in the history
This update means that player's will die if they hit off the walls. Bugs include:
- Snake only dies when half-way through wall
  • Loading branch information
RowanHarley authored Aug 1, 2016
1 parent 8b01b5c commit 30f1257
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,13 @@ function handleMessage (conn, data) {
if (r > Math.pow(R, 2)) {
// console.log("[TEST] " + r + " < " + R^2);
console.log('[DEBUG] Outside of Radius');
messages.end.build(0);
var arr = new Uint8Array(6);
message.writeInt8(2, arr, "s".charCodeAt(0));
message.writeInt16(3, arr, conn.id);
message.writeInt8(5, arr, 1);
broadcast(arr);
messages.end.build(2);
delete clients[conn.id];
conn.close();
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Slither-Server",
"description": "A Server for Slither.io",
"version": "0.0.5b4",
"version": "0.0.5b5",
"repository": {
"type": "git",
"url": "https://github.com/RowanHarley/Slither-Server"
Expand Down

0 comments on commit 30f1257

Please sign in to comment.