NEVER MIND REMOVING TAIL COLLISION WAS BAD IDEA

This commit is contained in:
ilikecats 2024-09-29 09:44:06 -07:00
parent cbe189bbed
commit bf6e29bc1b

View File

@ -32,7 +32,7 @@ export function updateFrame(grid, players, dead, notifyKill) {
for (let j = i; j < players.length; j++) {
//Remove those players when other players have hit their tail
/*if (!removing[j] && players[j].tail.hitsTail(players[i])) {
if (!removing[j] && players[j].tail.hitsTail(players[i])) {
kill(i, j);
removing[j] = true;
//console.log("TAIL");
@ -41,7 +41,7 @@ export function updateFrame(grid, players, dead, notifyKill) {
kill(j, i);
removing[i] = true;
//console.log("TAIL");
}*/
}
//Remove players with collisons...
if (i !== j && squaresIntersect(players[i].posX, players[j].posX) &&