/*
* 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;
}