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

@ -76,9 +76,21 @@ class MainMenuState extends MusicBeatState
override function update(elapsed:Float)
{
if (controls.UP_P)
{
FlxG.sound.play('assets/sounds/scrollMenu' + TitleState.soundExt);
changeItem(-1);
}
if (controls.DOWN_P)
{
FlxG.sound.play('assets/sounds/scrollMenu' + TitleState.soundExt);
changeItem(1);
}
if (controls.BACK)
{
FlxG.switchState(new TitleState());
}
super.update(elapsed);
@ -90,6 +102,8 @@ class MainMenuState extends MusicBeatState
}
else
{
FlxG.sound.play('assets/sounds/confirmMenu' + TitleState.soundExt);
FlxFlicker.flicker(magenta, 1.1, 0.15, false);
menuItems.forEach(function(spr:FlxSprite)