Examples of BackgroundMusicSource


Examples of games.stendhal.server.entity.mapstuff.sound.BackgroundMusicSource

    /*
     * Add music to the otherwise quiet zone. The radius is set
     * to be a bit more than the max distance, so at start the
     * music will be really quiet.
     */
    BackgroundMusicSource music = new BackgroundMusicSource(MUSIC_TRACK,
        (int) Math.sqrt(width * width + height * height) + 1, MUSIC_VOLUME);
    // set it at the the exit portal so that it's louder when the player is near
    music.setPosition(pos.x, pos.y);
    zone.add(music);

    zone.addMovementListener(new MazeMovementListener());
    return zone;
  }
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.