content/hifi-public/tony/blacklodge/ac.js
Dale Glass 0d14e5a379 Initial data.
Needs a lot of cleanup. Data has been de-duplicated, and where identical copies existed, one of them
has been replaced with a symlink.

Some files have been excluded, such as binaries, installers and debug dumps. Some of that may still
be present.
2022-02-13 18:59:11 +01:00

20 lines
639 B
JavaScript

var ORIGIN = {x: 0, y: 0, z: 0};
var MUSIC_URL = "file:///C:/msys64/home/anthony/code/hifi-assets/blacklodge/Bohren & Der Club Of Gore - Prowler.wav";
var musicSound = SoundCache.getSound(MUSIC_URL);
var musicInjector;
print("AJT: starting blacklodge ac.js");
function update(dt) {
if (musicSound.downloaded) {
if (!musicInjector) {
print("AJT: music has been downloaded!");
musicInjector = Audio.playSound(musicSound, { position: ORIGIN, volume: 1.0, loop: true });
} else {
Script.update.disconnect(update);
}
}
}
Script.update.connect(update);