From 5daacc2771c321ec5b57666c00a5b963ab0ef54c Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Sat, 16 Apr 2016 13:11:16 -0600 Subject: [PATCH] Load all Audio --- loadAudio.js | 17 +++++++++++++++++ start.js | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 loadAudio.js diff --git a/loadAudio.js b/loadAudio.js new file mode 100644 index 0000000..17cd34b --- /dev/null +++ b/loadAudio.js @@ -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() {} diff --git a/start.js b/start.js index 0560644..720040e 100644 --- a/start.js +++ b/start.js @@ -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");