From 5675911ad9f0e250c9851ef12c5b01ee37394ce0 Mon Sep 17 00:00:00 2001 From: Aidan Ross Date: Sat, 3 Jun 2023 01:02:44 -0400 Subject: Added some menuing sounds and made the hitsounds less obnoxious --- src/gui/LevelSurround.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/gui/LevelSurround.java') 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(); -- cgit v1.2.3