The music will work for anyone playing the level if they have the user-script (and have no problems with YouTube).
Requirements:
Mozilla Firefox
Greasemonkey Add-on
If you already have these then you can click here and install the user-script.
The script allows you to add music from YouTube as the background music of your level.
You only need to specify it in your AI code. An example level can be found here. (The music will only work if you have the user-script.)
The syntax is as follows:
Code: Select all
bgMusic, startingMinutes, startingSeconds, endingMinutes, endingSeconds, volume (0 - 100), youtubeID
Code: Select all
randomRotate
bgMusic,0,2,3,55,100,YOUTUBEID
randomWaypoints
rotatePart,0,10
You can get the YouTube ID from the url for example in
youtube.com/watch?v=9SbGP4TlwAQ
The ID would be 9SbGP4TlwAQ. (Only include the ID even if there would be parameters after it eg. &fmt=18 or &feature=related)
If you find any bugs let me know :P