Add enemies' dying faces

This commit is contained in:
pahaze 2021-01-01 00:39:58 -05:00
parent 1cc08a2241
commit 987bcd7eae
2 changed files with 13 additions and 3 deletions

View File

@ -405,7 +405,7 @@ class Controls extends FlxActionSet
switch (device)
{
case null:
// add all
// add all
#if (haxe >= "4.0.0")
for (gamepad in controls.gamepadsAdded)
if (!gamepadsAdded.contains(gamepad))
@ -416,6 +416,7 @@ class Controls extends FlxActionSet
gamepadsAdded.push(gamepad);
#end
mergeKeyboardScheme(controls.keyboardScheme);
case Gamepad(id):

View File

@ -726,6 +726,8 @@ class PlayState extends MusicBeatState
var startedCountdown:Bool = false;
var canPause:Bool = true;
override public function update(elapsed:Float)
{
#if !debug
@ -792,11 +794,18 @@ class PlayState extends MusicBeatState
if (health > 2)
health = 2;
if (healthBar.percent < 20)
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()); */