Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var R = config["gameRadius"];
- var r = Math.pow((conn.snake.body.x - 0), 2) + Math.pow((conn.snake.body.y - 0), 2);
- if (r < R^2){
- //console.log("[TEST] " + r + " < " + R^2);
- console.log("[DEBUG] Outside of Radius: " + r + ", R^2 = " + R^2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement