Package org.newdawn.slick

Examples of org.newdawn.slick.Music.loop()


  public void playMusic(String key) {
    Music m;
    try {
      m = new Music(key + EXT, true);
      // m.setVolume(0.1F);
      m.loop();
      playingMusic = key;
    } catch (SlickException e) {
      System.out.println("Could not play sound : " + key + EXT);
      e.printStackTrace();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.