keybinds settings

This commit is contained in:
Yoshman29
2022-10-12 23:21:10 +02:00
parent e5aa582131
commit 7c3815d117
13 changed files with 466 additions and 78 deletions
+8
View File
@@ -83,6 +83,14 @@ class CoolUtil
return null;
}
public static function playMenuSFX(menuSFX:Int = 0, volume:Float = 1) {
FlxG.sound.play(Paths.sound(switch(menuSFX) {
case 1: 'confirmMenu';
case 2: 'cancelMenu';
default: 'scrollMenu';
}), volume);
}
public static function difficultyString():String
{
return difficultyArray[PlayState.storyDifficulty];