Advertisement
RowanHarley

Untitled

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