Adds debug output
All checks were successful
EpicKnarvik97/Rogue101/master This commit looks good

This commit is contained in:
Kristian Knarvik 2020-02-14 09:36:24 +01:00
parent 0329f891eb
commit 422542fe82

View File

@ -171,6 +171,7 @@ public class NPC {
public static void playSound(String filename) {
URL url = NPC.class.getClassLoader().getResource(filename);
if (url != null) {
System.out.println("Playing " + url.toString());
Media sound = new Media(url.toString());
MediaPlayer mediaPlayer = new MediaPlayer(sound);
mediaPlayer.play();