add enemy

This commit is contained in:
biglyderv 2024-11-25 14:14:21 -05:00
parent 276e11fb49
commit edd005cb4d
7 changed files with 137 additions and 10 deletions

View file

@ -93,6 +93,11 @@ class Player extends Entity {
ent.isMenu = true;
ent.rot = 1.2;
}
if (target.type == 'Shooter') {
this.health = 0;
}
if (target.immortal) continue;
let oldHealth = target.health