Tails do not kill anymore
This commit is contained in:
parent
39421c43b5
commit
04a365fbc9
@ -32,7 +32,7 @@ export function updateFrame(grid, players, dead, notifyKill) {
|
|||||||
for (let j = i; j < players.length; j++) {
|
for (let j = i; j < players.length; j++) {
|
||||||
|
|
||||||
//Remove those players when other players have hit their tail
|
//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);
|
kill(i, j);
|
||||||
removing[j] = true;
|
removing[j] = true;
|
||||||
//console.log("TAIL");
|
//console.log("TAIL");
|
||||||
@ -41,7 +41,7 @@ export function updateFrame(grid, players, dead, notifyKill) {
|
|||||||
kill(j, i);
|
kill(j, i);
|
||||||
removing[i] = true;
|
removing[i] = true;
|
||||||
//console.log("TAIL");
|
//console.log("TAIL");
|
||||||
}
|
}*/
|
||||||
|
|
||||||
//Remove players with collisons...
|
//Remove players with collisons...
|
||||||
if (i !== j && squaresIntersect(players[i].posX, players[j].posX) &&
|
if (i !== j && squaresIntersect(players[i].posX, players[j].posX) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user