1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-26 23:16:46 +00:00
Funkin/source/HealthIcon.hx

32 lines
1.1 KiB
Haxe
Raw Normal View History

2020-12-24 23:24:11 +00:00
package;
import flixel.FlxSprite;
class HealthIcon extends FlxSprite
{
public function new(char:String = 'bf', isPlayer:Bool = false)
{
super();
2021-01-04 23:56:30 +00:00
loadGraphic('assets/images/iconGrid.png', true, 150, 150);
2020-12-24 23:24:11 +00:00
antialiasing = true;
animation.add('bf', [0, 1], 0, false, isPlayer);
2021-01-15 04:33:12 +00:00
animation.add('bf-car', [0, 1], 0, false, isPlayer);
2021-01-20 02:44:09 +00:00
animation.add('bf-christmas', [0, 1], 0, false, isPlayer);
2020-12-24 23:24:11 +00:00
animation.add('spooky', [2, 3], 0, false, isPlayer);
animation.add('pico', [4, 5], 0, false, isPlayer);
animation.add('mom', [6, 7], 0, false, isPlayer);
2021-01-15 04:33:12 +00:00
animation.add('mom-car', [6, 7], 0, false, isPlayer);
2020-12-24 23:24:11 +00:00
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);
2020-12-27 08:13:51 +00:00
animation.add('gf', [16], 0, false, isPlayer);
2021-01-20 06:38:39 +00:00
animation.add('parents-christmas', [17], 0, false, isPlayer);
animation.add('monster', [19, 20], 0, false, isPlayer);
animation.add('monster-christmas', [19, 20], 0, false, isPlayer);
2020-12-24 23:24:11 +00:00
animation.play(char);
scrollFactor.set();
}
}