Skip to content

Commit

Permalink
fix: show health indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
andretchen0 committed Jul 25, 2023
1 parent ec04f9c commit b3a08ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/creature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,11 @@ export class Creature {
}

healthHide() {
this.creatureSprite.showHealth(true);
this.creatureSprite.showHealth(false);
}

healthShow() {
this.creatureSprite.showHealth(false);
this.creatureSprite.showHealth(true);
}

/* activate()
Expand Down Expand Up @@ -2161,7 +2161,7 @@ class CreatureSprite {
);
healthIndicatorText.anchor.setTo(0.5, 0.5);
healthIndicatorGroup.add(healthIndicatorText);
healthIndicatorGroup.alpha = 0;
healthIndicatorGroup.visible = false;

this._group = group;
this._sprite = sprite;
Expand Down

0 comments on commit b3a08ed

Please sign in to comment.