Skip to content

Commit

Permalink
chore(gameobjects): randomize enemy health
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jan 22, 2025
1 parent d1674bd commit 9168981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gameobjects/enemy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9168981

Please sign in to comment.