mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
We have audio! Thanks @orsi!
This commit is contained in:
+4
-1
@@ -7,7 +7,6 @@ var Ship = {
|
||||
ALLOY_PER_THRUSTER: 1,
|
||||
BASE_HULL: 0,
|
||||
BASE_THRUSTERS: 1,
|
||||
|
||||
name: _("Ship"),
|
||||
init: function(options) {
|
||||
this.options = $.extend(
|
||||
@@ -91,6 +90,7 @@ var Ship = {
|
||||
Notifications.notify(Ship, _('somewhere above the debris cloud, the wanderer fleet hovers. been on this rock too long.'));
|
||||
$SM.set('game.spaceShip.seenShip', true);
|
||||
}
|
||||
AudioEngine.playBackgroundMusic(AudioLibrary.MUSIC_SHIP);
|
||||
|
||||
Engine.moveStoresView(null, transition_diff);
|
||||
},
|
||||
@@ -112,6 +112,7 @@ var Ship = {
|
||||
Button.setDisabled($('#liftoffButton', Ship.panel), false);
|
||||
}
|
||||
$('#hullRow .row_val', Ship.panel).text($SM.get('game.spaceShip.hull'));
|
||||
AudioEngine.playSound(AudioLibrary.REINFORCE_HULL);
|
||||
},
|
||||
|
||||
upgradeEngine: function() {
|
||||
@@ -122,6 +123,7 @@ var Ship = {
|
||||
$SM.add('stores["alien alloy"]', -Ship.ALLOY_PER_THRUSTER);
|
||||
$SM.add('game.spaceShip.thrusters', 1);
|
||||
$('#engineRow .row_val', Ship.panel).text($SM.get('game.spaceShip.thrusters'));
|
||||
AudioEngine.playSound(AudioLibrary.UPGRADE_ENGINE);
|
||||
},
|
||||
|
||||
getMaxHull: function() {
|
||||
@@ -166,6 +168,7 @@ var Ship = {
|
||||
$('#outerSlider').animate({top: '700px'}, 300);
|
||||
Space.onArrival();
|
||||
Engine.activeModule = Space;
|
||||
AudioEngine.playSound(AudioLibrary.LIFT_OFF);
|
||||
},
|
||||
|
||||
handleStateUpdates: function(e){
|
||||
|
||||
Reference in New Issue
Block a user