SoundEffect(String file) {
		try {
			URL url = SoundEffect.class.getResource("/sfx/" + file);

			if (file == "Shoot1.wav" || file == "Shoot2.wav")
				clips = new Clip[5];
			else
				clips = new Clip[2];

			for (int i = 0; i < clips.length; i++) {

				AudioInputStream ais = AudioSystem.getAudioInputStream(url);

				AudioFormat format = ais.getFormat();
				DataLine.Info info = new DataLine.Info(Clip.class, format);
				clips[i] = (Clip) AudioSystem.getLine(info);
				clips[i].open(ais);

				ais.close();
			}

		} catch (UnsupportedAudioFileException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (LineUnavailableException e) {
			e.printStackTrace();
		}
	}