Skip to content

Commit

Permalink
Update TitleState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesisfeline committed Dec 1, 2024
1 parent 553015b commit 295071f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/funkin/ui/title/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,17 @@ class TitleState extends MusicBeatState
var titleText:FlxSprite;
var maskShader = new LeftMaskShader();

var bg:FunkinSprite;

function startIntro():Void
{
if (!initialized || FlxG.sound.music == null) playMenuMusic();

persistentUpdate = true;

if (!gfThingy) var bg:FunkinSprite = new FunkinSprite(-1).makeSolidColor(FlxG.width + 2, FlxG.height, 0xFFC55500);
if (!gfThingy) bg = new FunkinSprite(-1).makeSolidColor(FlxG.width + 2, FlxG.height, 0xFFC55500);
else
var bg:FunkinSprite = new FunkinSprite(-1).makeSolidColor(FlxG.width + 2, FlxG.height, FlxColor.BLACK);
bg = new FunkinSprite(-1).makeSolidColor(FlxG.width + 2, FlxG.height, FlxColor.BLACK);
bg.screenCenter();
add(bg);

Expand Down

0 comments on commit 295071f

Please sign in to comment.