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
-16
View File
@@ -11,22 +11,6 @@ var Space = {
NUM_STARS: 200,
STAR_SPEED: 60000,
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',
'crash': '/audio/crash.wav',
},
stars: null,
backStars: null,
ship: null,