RELEASE SHIIIT

This commit is contained in:
Cameron Taylor 2020-11-01 00:58:20 -07:00
parent c7f7a7dff0
commit 475dd9c49d
5 changed files with 19 additions and 1 deletions

Binary file not shown.

View File

@ -17,6 +17,9 @@ class FreeplayState extends MusicBeatState
override function create()
{
if (!FlxG.sound.music.playing)
FlxG.sound.playMusic('assets/music/freakyMenu' + TitleState.soundExt);
if (StoryMenuState.weekUnlocked[1])
{
songs.push('Spookeez');

View File

@ -39,11 +39,21 @@ class GameOverSubstate extends MusicBeatSubstate
{
super.update(elapsed);
if (FlxG.keys.justPressed.ENTER)
if (controls.ACCEPT)
{
endBullshit();
}
if (controls.BACK)
{
FlxG.sound.music.stop();
if (PlayState.isStoryMode)
FlxG.switchState(new StoryMenuState());
else
FlxG.switchState(new FreeplayState());
}
if (bf.animation.curAnim.name == 'firstDeath' && bf.animation.curAnim.curFrame == 12)
{
FlxG.camera.follow(camFollow, LOCKON, 0.01);

View File

@ -38,6 +38,9 @@ class StoryMenuState extends MusicBeatState
override function create()
{
if (!FlxG.sound.music.playing)
FlxG.sound.playMusic('assets/music/freakyMenu' + TitleState.soundExt);
persistentUpdate = persistentDraw = true;
scoreText = new FlxText(10, 10, 0, "SCORE: 49324858", 36);

View File

@ -162,6 +162,8 @@ class TitleState extends MusicBeatState
FlxTween.tween(credTextShit, {y: credTextShit.y + 20}, 2.9, {ease: FlxEase.quadInOut, type: PINGPONG});
FlxG.mouse.visible = false;
if (initialized)
skipIntro();
else