I'm trying to play music in the background for my opening menu, but cant seem to find a tutorial specifically on how to play a music file. Does anyone know how this can be accomplished?
1 Answer
@Override
public void init(GameContainer gc) throws SlickException {
Music openingMenuMusic = new Music("res/openingMenuMusic.ogg");
openingMenuMusic.loop();
}
http://slick.cokeandcode.com/javadoc/org/newdawn/slick/Music.html