add Paths asset name helper

This commit is contained in:
George FunBook
2021-02-08 15:34:48 -06:00
parent a4b79abc5a
commit d16091dc24
21 changed files with 199 additions and 142 deletions

View File

@ -7,7 +7,7 @@ class HealthIcon extends FlxSprite
public function new(char:String = 'bf', isPlayer:Bool = false)
{
super();
loadGraphic('assets/images/iconGrid.png', true, 150, 150);
loadGraphic(Paths.image('iconGrid'), true, 150, 150);
antialiasing = true;
animation.add('bf', [0, 1], 0, false, isPlayer);