🍔🕰 Checkpoint

./server.js:9949330/135
This commit is contained in:
Glitch (hello-express) 2020-03-16 03:06:14 +00:00
parent a3a77645f7
commit af25a39f44
1 changed files with 5 additions and 0 deletions

View File

@ -98,14 +98,19 @@ var cursorupdate = setInterval(function() {
} }
if ((pos.x >= 50) && (pos.y >= 50)) { if ((pos.x >= 50) && (pos.y >= 50)) {
console.log("corner hit"); console.log("corner hit");
cornerhits += 1;
} else if ((pos.x >= 50) && (pos.y <= -50)) { } else if ((pos.x >= 50) && (pos.y <= -50)) {
console.log("corner hit"); console.log("corner hit");
cornerhits += 1;
} else if ((pos.x <= -50) && (pos.y <= -50)) { } else if ((pos.x <= -50) && (pos.y <= -50)) {
console.log("corner hit"); console.log("corner hit");
cornerhits += 1;
} else if ((pos.x <= -50) && (pos.y >= 50)) { } else if ((pos.x <= -50) && (pos.y >= 50)) {
console.log("corner hit"); console.log("corner hit");
cornerhits += 1;
} else if ((pos.x >= 50) || (pos.y >= 50) || (pos.y <= -50) || (pos.x <= -50)) { } else if ((pos.x >= 50) || (pos.y >= 50) || (pos.y <= -50) || (pos.x <= -50)) {
console.log("edge hit"); console.log("edge hit");
edgehits += 1;
} }
break; break;
} }