Load all Audio

This commit is contained in:
Robbie Antenesse 2016-04-16 13:11:16 -06:00
parent 9acc3130e4
commit 5daacc2771
2 changed files with 19 additions and 1 deletions

17
loadAudio.js Normal file
View File

@ -0,0 +1,17 @@
var mus_title = new OS.Tune("Title", "audio/music/cloudisland(theme2).mp3", "audio/music/cloudisland(theme2).wav");
var mus_sail = new OS.Tune("Sailing", "audio/music/cloudisland(soaring).mp3", "audio/music/cloudisland(soaring).wav");
var mus_trade = new OS.Tune("Trade", "audio/music/cloudisland(theme1-noeffects).mp3", "audio/music/cloudisland(theme1-noeffects).wav");
var mus_credits = new OS.Tune("Credits", "audio/music/cloudisland(theme1-effects).mp3", "audio/music/cloudisland(theme1-effects).wav");
var snd_buy = new OS.Sound("Buy", "audio/sounds/Buy.wav", "audio/sounds/Buy.mp3");
var snd_cannotbuy = new OS.Sound("Cannot Buy", "audio/sounds/Cannot_Buy.wav", "audio/sounds/Cannot_Buy.mp3");
var snd_heal = new OS.Sound("Heal", "audio/sounds/Heal.wav", "audio/sounds/Heal.mp3");
var snd_illness = new OS.Sound("Illness", "audio/sounds/Illness.wav", "audio/sounds/Illness.mp3");
var snd_cursordown = new OS.Sound("Move Cursor Down", "audio/sounds/Move_Cursor.wav", "audio/sounds/Move_Cursor.mp3");
var snd_cursorup = new OS.Sound("Move Cursor Up", "audio/sounds/Move_Cursor_Up.wav", "audio/sounds/Move_Cursor_Up.mp3");
var snd_sailing = new OS.Sound("Sailing", "audio/sounds/Sailing.wav", "audio/sounds/Sailing.mp3");
var snd_select = new OS.Sound("Select", "audio/sounds/Select.wav", "audio/sounds/Select.mp3");
var snd_sell = new OS.Sound("Sell", "audio/sounds/Sell.wav", "audio/sounds/Sell.mp3");
var snd_wave = new OS.Sound("Wave Crash", "audio/sounds/Wave_Crash.wav", "audio/sounds/Wave_Crash.mp3");
function loadAudio() {}

View File

@ -1,5 +1,5 @@
OS.S.defaultStep = 1 / 120;
OS.S.numberOfScriptsToLoad = 14; // Excludes the titleScreen.js room, which is not loaded yet.
OS.S.numberOfScriptsToLoad = 15; // Excludes the titleScreen.js room, which is not loaded yet.
OS.S.pixelScale = 4;
// Oversimplified.DEBUG.showMessages = false;
OS.SetCamera({
@ -11,6 +11,7 @@ OS.SetCamera({
function start()
{
OS.AddScript("loadControls.js");
OS.AddScript("loadAudio.js");
OS.AddScript("loadGameManager.js");
OS.AddScript("loadPrefabs.js");
OS.AddScript("loadGUIs.js");