mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
add outline of ship sounds
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user