1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-01-16 01:28:11 +00:00

pixel icon bullshits

This commit is contained in:
Cameron Taylor 2021-03-19 00:03:29 -04:00
parent fdd8e0445e
commit be5907ba12

View file

@ -44,7 +44,15 @@ class HealthIcon extends FlxSprite
function loadIcon(char:String):Void
{
var realChar:String = char.split('-')[0].trim();
var realChar:String = "";
switch (char)
{
case 'bf-pixel':
realChar = char;
default:
realChar = char.split('-')[0].trim();
}
loadGraphic(Paths.image('icons/icon-' + realChar), true, 150, 150);
animation.add(realChar, [0, 1], 0, false, isPlayer);
animation.play(realChar);