mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Added finish noise.
#story[1249]
This commit is contained in:
@@ -22,6 +22,10 @@ public class Sounds {
|
||||
musicPlayer.stop();
|
||||
}
|
||||
|
||||
public static void stopSoundEffects() {
|
||||
soundEffect.stop();
|
||||
}
|
||||
|
||||
public static void toggleMuteMusic() {
|
||||
musicMuted = !musicMuted;
|
||||
musicPlayer.setMute(musicMuted);
|
||||
@@ -75,6 +79,13 @@ public class Sounds {
|
||||
soundPlayer.setMute(soundEffectsMuted);
|
||||
}
|
||||
|
||||
public static void playFinishSound() {
|
||||
Media finishSound = new Media(Sounds.class.getClassLoader().getResource("sounds/Sms-notification.mp3").toString());
|
||||
soundPlayer = new MediaPlayer(finishSound);
|
||||
soundPlayer.play();
|
||||
soundPlayer.setMute(soundEffectsMuted);
|
||||
}
|
||||
|
||||
public static void playCapGunSound() {
|
||||
Media gunSound = new Media(Sounds.class.getClassLoader().getResource("sounds/Gunshot-sound.mp3").toString());
|
||||
soundPlayer = new MediaPlayer(gunSound);
|
||||
|
||||
Reference in New Issue
Block a user