mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
preload high priority area and event audio
This commit is contained in:
@@ -104,6 +104,15 @@
|
||||
Engine.loadGame();
|
||||
}
|
||||
|
||||
// start loading music and events early
|
||||
for (var key in AudioLibrary) {
|
||||
if (
|
||||
key.toString().indexOf('MUSIC_') > -1 ||
|
||||
key.toString().indexOf('EVENT_') > -1) {
|
||||
AudioEngine.loadAudioFile(AudioLibrary[key]);
|
||||
}
|
||||
}
|
||||
|
||||
$('<div>').attr('id', 'locationSlider').appendTo('#main');
|
||||
|
||||
var menu = $('<div>')
|
||||
|
||||
Reference in New Issue
Block a user