Skip to content

Commit

Permalink
Update TitleState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Oct 7, 2024
1 parent 594e97a commit dc9e1b3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/states/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package states;

class TitleState extends ExtendableState {
var lockInputs:Bool = false;
var initialized:Bool = false;

override function create() {
super.create();
Expand All @@ -17,10 +16,8 @@ class TitleState extends ExtendableState {
}
#end

if (!initialized) {
if (!FlxG.sound.music.playing)
FlxG.sound.playMusic(Paths.music('Basically_Professionally_Musically'), 0.75);
initialized = true;
}

var bg:FlxSprite = new FlxSprite().loadGraphic(Paths.image('menu/backgrounds/title_bg'));
add(bg);
Expand Down

0 comments on commit dc9e1b3

Please sign in to comment.