forked from ilikecats/papercats
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++) {
|
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…
x
Reference in New Issue
Block a user