mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-07-01 00:32:31 +08:00
add outline of space sounds
This commit is contained in:
Binary file not shown.
+20
-1
@@ -11,7 +11,21 @@ var Space = {
|
|||||||
NUM_STARS: 200,
|
NUM_STARS: 200,
|
||||||
STAR_SPEED: 60000,
|
STAR_SPEED: 60000,
|
||||||
FRAME_DELAY: 100,
|
FRAME_DELAY: 100,
|
||||||
|
currentMusic: 0,
|
||||||
|
MUSIC: {
|
||||||
|
0: '/audio/space.wav',
|
||||||
|
1: '/audio/troposphere.wav',
|
||||||
|
2: '/audio/stratosphere.wav',
|
||||||
|
3: '/audio/mesosphere.wav',
|
||||||
|
4: '/audio/thermosphere.wav',
|
||||||
|
5: '/audio/exosphere.wav',
|
||||||
|
6: '/audio/ending.wav',
|
||||||
|
},
|
||||||
|
SOUNDS: {
|
||||||
|
'asteroid-hit-1': '/audio/asteroid-hit-1.wav',
|
||||||
|
'asteroid-hit-2': '/audio/asteroid-hit-2.wav',
|
||||||
|
'asteroid-hit-3': '/audio/asteroid-hit-3.wav',
|
||||||
|
},
|
||||||
stars: null,
|
stars: null,
|
||||||
backStars: null,
|
backStars: null,
|
||||||
ship: null,
|
ship: null,
|
||||||
@@ -67,6 +81,7 @@ var Space = {
|
|||||||
});
|
});
|
||||||
Space.startAscent();
|
Space.startAscent();
|
||||||
Space._shipTimer = setInterval(Space.moveShip, 33);
|
Space._shipTimer = setInterval(Space.moveShip, 33);
|
||||||
|
Space.setMusic();
|
||||||
},
|
},
|
||||||
|
|
||||||
setTitle: function() {
|
setTitle: function() {
|
||||||
@@ -532,5 +547,9 @@ var Space = {
|
|||||||
|
|
||||||
handleStateUpdates: function(e){
|
handleStateUpdates: function(e){
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
setMusic: function () {
|
||||||
|
AudioEngine.changeMusic(Space.MUSIC[0]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user