lil bullshit

This commit is contained in:
Cameron Taylor 2020-10-30 19:33:28 -07:00
parent f9b6c1461c
commit 12913b4f31
5 changed files with 10 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -69,6 +69,7 @@ class FreeplayState extends MusicBeatState
if (accepted)
{
PlayState.SONG = Song.loadFromJson(songs[curSelected].toLowerCase());
PlayState.isStoryMode = false;
FlxG.switchState(new PlayState());
FlxG.sound.music.stop();
}

View File

@ -735,6 +735,10 @@ class PlayState extends MusicBeatState
FlxG.switchState(new PlayState());
}
}
else
{
FlxG.switchState(new FreeplayState());
}
}
var endingSong:Bool = false;

View File

@ -30,6 +30,8 @@ class StoryMenuState extends MusicBeatState
override function create()
{
persistentUpdate = persistentDraw = true;
scoreText = new FlxText(10, 10, 0, "SCORE: 49324858", 36);
scoreText.setFormat("VCR OSD Mono", 32);

View File

@ -41,7 +41,7 @@ class TitleState extends MusicBeatState
super.create();
#if SKIP_TO_PLAYSTATE
FlxG.switchState(new StoryMenuState());
FlxG.switchState(new FreeplayState());
#else
startIntro();
#end
@ -143,7 +143,7 @@ class TitleState extends MusicBeatState
new FlxTimer().start(2, function(tmr:FlxTimer)
{
FlxG.switchState(new FreeplayState());
FlxG.switchState(new StoryMenuState());
});
FlxG.sound.play('assets/music/titleShoot' + TitleState.soundExt, 0.7);
}