Skip to content

Commit

Permalink
chore(gameobjects): pop enemy bubble on player collision
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jan 25, 2025
1 parent c718519 commit e81e6f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gameobjects/enemy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export function addEnemy() {

enemy.onCollide(Tag.Player, () => {
if (enemy.bubble) {
enemy.get(Tag.Bubbled)[0].destroy()
enemy.bubble = false
return
}

Expand Down

0 comments on commit e81e6f3

Please sign in to comment.