sounds and polish shit

This commit is contained in:
Cameron Taylor
2020-10-31 12:53:58 -07:00
parent fcdfbd8f73
commit 8273af5a43
9 changed files with 43 additions and 11 deletions

View File

@ -161,17 +161,25 @@ class StoryMenuState extends MusicBeatState
if (!selectedWeek)
{
if (controls.UP_P)
{
changeWeek(-1);
}
if (controls.DOWN_P)
{
changeWeek(1);
}
}
if (controls.ACCEPT)
{
selectWeek();
}
}
if (controls.BACK && !movedBack && !selectedWeek)
{
FlxG.sound.play('assets/sounds/cancelMenu' + TitleState.soundExt);
movedBack = true;
FlxG.switchState(new MainMenuState());
}
@ -186,6 +194,8 @@ class StoryMenuState extends MusicBeatState
{
if (weekUnlocked[curWeek])
{
FlxG.sound.play('assets/sounds/confirmMenu' + TitleState.soundExt);
grpWeekText.members[curWeek].week.animation.resume();
grpWeekCharacters.members[1].animation.play('bfConfirm');
@ -218,6 +228,8 @@ class StoryMenuState extends MusicBeatState
bullShit++;
}
FlxG.sound.play('assets/sounds/scrollMenu' + TitleState.soundExt);
updateText();
}