smol changes
This commit is contained in:
parent
c58f00930a
commit
beef2d1519
2 changed files with 1 additions and 2 deletions
|
@ -36,7 +36,6 @@ class Player
|
|||
this.health-=amount;
|
||||
if(this.health<=0)
|
||||
{
|
||||
console.log(network);
|
||||
network.died(this.id,killerId);
|
||||
this.health=10;
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ class Network{
|
|||
this.bulletsToAdd.push(new Bullet(data.data.x,data.data.y,data.data.dx,data.data.dy,data.data.id));
|
||||
break;
|
||||
case "died":
|
||||
console.log("player ",data.data.id," died");
|
||||
console.log("player",data.data.id,"died");
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue