NEVER MIND REMOVING TAIL COLLISION WAS BAD IDEA
This commit is contained in:
parent
cbe189bbed
commit
bf6e29bc1b
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user