mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-26 15:07:14 +00:00
pixel icon placement fix
This commit is contained in:
parent
31b393b014
commit
231f76c893
|
@ -111,6 +111,8 @@ class HealthIcon extends FlxSprite
|
|||
this.antialiasing = !isPixel;
|
||||
|
||||
this.flipX = playerId == 0;
|
||||
|
||||
initTargetSize();
|
||||
}
|
||||
|
||||
function set_characterId(value:String):String
|
||||
|
@ -209,6 +211,12 @@ class HealthIcon extends FlxSprite
|
|||
}
|
||||
}
|
||||
|
||||
inline function initTargetSize()
|
||||
{
|
||||
setGraphicSize(150);
|
||||
updateHitbox();
|
||||
}
|
||||
|
||||
function updateHealthIcon(health:Float)
|
||||
{
|
||||
// We want to efficiently handle animation playback
|
||||
|
|
Loading…
Reference in a new issue