From f188f45e4bde91590b923e3695a516b2691ce37b Mon Sep 17 00:00:00 2001 From: jorsi Date: Fri, 29 May 2020 19:04:37 -0400 Subject: [PATCH] add outline of ship sounds --- script/ship.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/script/ship.js b/script/ship.js index a513f9d..762266a 100644 --- a/script/ship.js +++ b/script/ship.js @@ -8,6 +8,15 @@ var Ship = { BASE_HULL: 0, BASE_THRUSTERS: 1, + currentMusic: 0, + MUSIC: { + 0: '/audio/ship.wav' + }, + SOUNDS: { + 'reinforce-hull': '/audio/reinforce-hull.wav', + 'upgrade-engine': '/audio/upgrade-engine.wav', + 'lift-off': '/audio/lift-off.wav', + }, name: _("Ship"), init: function(options) { this.options = $.extend( @@ -170,5 +179,9 @@ var Ship = { handleStateUpdates: function(e){ + }, + + setMusic: function () { + AudioEngine.changeMusic(Ship.MUSIC[0]); } };