🍁🎉 Checkpoint

./server.js:9949330/1366
This commit is contained in:
Glitch (hello-express) 2020-03-16 02:42:13 +00:00
parent ba241e0ac0
commit a3a77645f7
1 changed files with 10 additions and 10 deletions

View File

@ -96,17 +96,17 @@ var cursorupdate = setInterval(function() {
if (pos.y <= -50) { if (pos.y <= -50) {
vel.y = -vel.y; vel.y = -vel.y;
} }
if (pos.x <= -50 && pos.y >= -50) { if ((pos.x >= 50) && (pos.y >= 50)) {
cornerhits += 1; console.log("corner hit");
chat("test corner"); } else if ((pos.x >= 50) && (pos.y <= -50)) {
} else if (pos.x <= -50 || pos.x >= 50) { console.log("corner hit");
edgehits += 1; } else if ((pos.x <= -50) && (pos.y <= -50)) {
chat("test edge"); console.log("corner hit");
} else if (pos.y <= -50 || pos.y >= 50) { } else if ((pos.x <= -50) && (pos.y >= 50)) {
edgehits += 1; console.log("corner hit");
chat("test edge") } else if ((pos.x >= 50) || (pos.y >= 50) || (pos.y <= -50) || (pos.x <= -50)) {
console.log("edge hit");
} }
break; break;
} }
console.log(pos.x + " : " + pos.y);
}, 25); }, 25);