mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-09-11 20:57:20 +00:00
26 lines
717 B
Haxe
26 lines
717 B
Haxe
package;
|
|
|
|
import flixel.FlxSprite;
|
|
|
|
class HealthIcon extends FlxSprite
|
|
{
|
|
public function new(char:String = 'bf', isPlayer:Bool = false)
|
|
{
|
|
super();
|
|
|
|
loadGraphic(AssetPaths.iconGrid__png, true, 150, 150);
|
|
|
|
antialiasing = true;
|
|
animation.add('bf', [0, 1], 0, false, isPlayer);
|
|
animation.add('spooky', [2, 3], 0, false, isPlayer);
|
|
animation.add('pico', [4, 5], 0, false, isPlayer);
|
|
animation.add('mom', [6, 7], 0, false, isPlayer);
|
|
animation.add('tankman', [8, 9], 0, false, isPlayer);
|
|
animation.add('face', [10, 11], 0, false, isPlayer);
|
|
animation.add('dad', [12, 13], 0, false, isPlayer);
|
|
animation.add('bf-old', [14, 15], 0, false, isPlayer);
|
|
animation.play(char);
|
|
scrollFactor.set();
|
|
}
|
|
}
|