create AudioLibrary module to consolidate audio

This commit is contained in:
jorsi
2020-05-30 23:03:46 -04:00
parent 20132690da
commit a340584136
8 changed files with 128 additions and 84 deletions
-9
View File
@@ -7,15 +7,6 @@ var Ship = {
ALLOY_PER_THRUSTER: 1,
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(