aboutsummaryrefslogtreecommitdiff
path: root/src/gui/LevelSurround.java
diff options
context:
space:
mode:
authorAidan Ross <aross02@fairport.org>2023-06-03 01:02:44 -0400
committerAidan Ross <aross02@fairport.org>2023-06-03 01:02:44 -0400
commit5675911ad9f0e250c9851ef12c5b01ee37394ce0 (patch)
tree96c69cf340e2f4e1825d56fb945fbb6cf0a5daf9 /src/gui/LevelSurround.java
parent4c920e9a2166f5343574467c147232093885a772 (diff)
downloadNPEhero-5675911ad9f0e250c9851ef12c5b01ee37394ce0.tar.gz
NPEhero-5675911ad9f0e250c9851ef12c5b01ee37394ce0.tar.bz2
NPEhero-5675911ad9f0e250c9851ef12c5b01ee37394ce0.zip
Added some menuing sounds and made the hitsounds less obnoxious
Diffstat (limited to '')
-rw-r--r--src/gui/LevelSurround.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gui/LevelSurround.java b/src/gui/LevelSurround.java
index d5dcd33..c89ef6d 100644
--- a/src/gui/LevelSurround.java
+++ b/src/gui/LevelSurround.java
@@ -35,11 +35,8 @@ public class LevelSurround extends Pane
exit.setText("Back");
exit.setOnAction(e -> {
Driver.setMenu(prev);
- try {
- game.cancel();
- } catch (UnsupportedAudioFileException | IOException | LineUnavailableException e1) {
- e1.printStackTrace();
- }
+ Driver.menuFx.play("src/assets/MenuBackward.wav");
+ game.cancel();
});
Button pause = new Button();