2
\$\begingroup\$

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?

\$\endgroup\$

1 Answer 1

2
\$\begingroup\$
@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

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.