mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-25 08:13:45 +00:00
pixel icon shit in progress
This commit is contained in:
parent
e2fbf5a300
commit
94d805136c
|
@ -46,11 +46,20 @@ class HealthIcon extends FlxSprite
|
||||||
{
|
{
|
||||||
if (animation.getByName(newChar) == null)
|
if (animation.getByName(newChar) == null)
|
||||||
{
|
{
|
||||||
loadGraphic(Paths.image('icons/icon-' + newChar), true, 150, 150);
|
var imgSize:Int = 150;
|
||||||
|
|
||||||
|
if (newChar.endsWith('pixel'))
|
||||||
|
imgSize = 32;
|
||||||
|
|
||||||
|
loadGraphic(Paths.image('icons/icon-' + newChar), true, imgSize, imgSize);
|
||||||
|
|
||||||
animation.add(newChar, [0, 1], 0, false, isPlayer);
|
animation.add(newChar, [0, 1], 0, false, isPlayer);
|
||||||
}
|
}
|
||||||
animation.play(newChar);
|
animation.play(newChar);
|
||||||
char = newChar;
|
char = newChar;
|
||||||
|
|
||||||
|
if (newChar.endsWith('pixel'))
|
||||||
|
setGraphicSize(150, 150);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue