Skip to content

Commit

Permalink
Merge pull request #138 from pahaze/master
Browse files Browse the repository at this point in the history
Add enemies' dying faces
  • Loading branch information
ninjamuffin99 authored Jan 6, 2021
2 parents 8f5e29c + 5082b85 commit 2abc060
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,11 @@ class PlayState extends MusicBeatState
iconP1.animation.curAnim.curFrame = 1;
else
iconP1.animation.curAnim.curFrame = 0;

if (healthBar.percent > 80)
iconP2.animation.curAnim.curFrame = Std.parseInt(curStage) + 1;
else
iconP2.animation.curAnim.curFrame = Std.parseInt(curStage);

/* if (FlxG.keys.justPressed.NINE)
FlxG.switchState(new Charting()); */
Expand Down

0 comments on commit 2abc060

Please sign in to comment.