mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-14 19:25:16 -05:00
pixel icon placement fix
This commit is contained in:
parent
31b393b014
commit
231f76c893
1 changed files with 8 additions and 0 deletions
|
@ -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