Skip to content

Commit

Permalink
unhardcode the healthbar image
Browse files Browse the repository at this point in the history
oops
  • Loading branch information
TheRealJake12 committed Jan 14, 2024
1 parent 39c5cd4 commit aa40256
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,8 @@ class PlayState extends MusicBeatState
+ misses, iconRPC);
#end

barImage = Paths.image('healthBar', 'shared');

// Setup The Cameras.
camGame = new SwagCamera();
camHUD = new FlxCamera();
Expand Down Expand Up @@ -1324,9 +1326,7 @@ class PlayState extends MusicBeatState

function createBar()
{
barImage = Paths.image('healthBar', 'shared');

healthBarBG = new FlxSprite(0, FlxG.height * 0.9).loadGraphic(Paths.image('healthBar'));
healthBarBG = new FlxSprite(0, FlxG.height * 0.9).loadGraphic(barImage);
if (PlayStateChangeables.useDownscroll)
healthBarBG.y = 50;
healthBarBG.screenCenter(X);
Expand Down

0 comments on commit aa40256

Please sign in to comment.