Skip to content

Commit 5d65928

Browse files
committed
ASTEROIDS
1 parent ee3a232 commit 5d65928

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ IPew includes the following sounds:
2727
- `b5=1` - Babylon 5 defense grid cannons!
2828
- `pew=1` - Somewhat disturbing human-made "pew-pew" sound
2929
- `galaga=1` - Classic arcade sound!
30+
- `asteroids=1` - ASTEROIDS!
3031

3132
To turn off sound effects (but, but, _why?_ :-), use `nofx=1`, and to randomly cycle through them all use `allfx=1`
3233

asteroids.mp3

1.55 KB
Binary file not shown.

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
<audio id="wargames" src="WarGames-KeyPress.wav" preload="auto"></audio>
121121
<audio id="pew" src="pew.mp3" preload="auto"></audio>
122122
<audio id="galaga" src="shot_sound.mp3" preload="auto"></audio>
123+
<audio id="asteroids" src="asteroids.mp3" preload="auto"></audio>
123124

124125
<center><div id="container1"></div></center>
125126
<div id="titlediv">IPew Attack Map</div>
@@ -161,7 +162,7 @@ <h3>About IPew</h3>
161162

162163
// gotta add types here if you add more sounds (or delete them)
163164

164-
audio_type = [ "starwars", "tng", "b5", "wargames", "pew", "galaga" ]
165+
audio_type = [ "starwars", "tng", "b5", "wargames", "pew", "galaga", "asteroids" ]
165166

166167
// need this to more easily grab URI query parameters
167168
$.extend({
@@ -202,6 +203,7 @@ <h3>About IPew</h3>
202203
var pew = $.getUrlVar('pew');
203204
var allfx = $.getUrlVar('allfx')
204205
var galaga = $.getUrlVar('galaga')
206+
var asteroids = $.getUrlVar('asteroids')
205207
var drill_mode = $.getUrlVar("drill_mode")
206208
var in_lat = $.getUrlVar("lat")
207209
var in_lon = $.getUrlVar("lon")
@@ -215,6 +217,7 @@ <h3>About IPew</h3>
215217
if (typeof wargames !== 'undefined') { snd_id = "wargames" ; }
216218
if (typeof pew !== 'undefined') { snd_id = "pew" ; }
217219
if (typeof galaga !== 'undefined') { snd_id = "galaga" ; }
220+
if (typeof asteroids !== 'undefined') { snd_id = "asteroids" ; }
218221

219222
if (typeof bad_day !== 'undefined') {
220223
attack_min=200;

0 commit comments

Comments
 (0)