aboutsummaryrefslogtreecommitdiffstats
path: root/src/enemies/Enemy.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/enemies/Enemy.ts')
-rw-r--r--src/enemies/Enemy.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/enemies/Enemy.ts b/src/enemies/Enemy.ts
index 607a612..d85b11e 100644
--- a/src/enemies/Enemy.ts
+++ b/src/enemies/Enemy.ts
@@ -5,8 +5,10 @@ import Drawable, { Rectangle } from "../Drawable";
export default abstract class Enemy extends Drawable {
squares: Array<Rectangle> = [new Rectangle(this)]
points = 5;
+ health = 2
+ deathAnim: (string | HTMLImageElement)[] = ["red"]
shoot(bullet: Bullet[]) {
- bullet.push(new Bullet(this.x + (this.width / 2) - Bullet.width / 2, this.y2, 0, BULLET_VEL, true))
+ bullet.push(new Bullet(this.x + (this.width / 2) - Bullet.width / 2, this.y2, 0, BULLET_VEL, false))
}
}