From 916898177ff31c805496d19f684dc58be694ecfc Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 21 Jan 2025 23:42:13 -0500 Subject: [PATCH] chore(gameobjects): randomize enemy health --- src/gameobjects/enemy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gameobjects/enemy.ts b/src/gameobjects/enemy.ts index 67c5154..91cdbc3 100644 --- a/src/gameobjects/enemy.ts +++ b/src/gameobjects/enemy.ts @@ -9,7 +9,7 @@ export function addEnemy(x: number, y: number, player: Player) { sprite(sprites[randi(sprites.length)]), pos(x, y), anchor('center'), - health(100), + health(randi(20, 100)), opacity(1), area(), Tag.Enemy,