Skip to content

Commit

Permalink
Merge pull request hrbrmstr#20 from dabdine-r7/tim-allen
Browse files Browse the repository at this point in the history
add tim allen sound file
  • Loading branch information
hrbrmstr authored Mar 10, 2017
2 parents 5d65928 + 9417ffa commit 6ff7b26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ IPew includes the following sounds:
- `pew=1` - Somewhat disturbing human-made "pew-pew" sound
- `galaga=1` - Classic arcade sound!
- `asteroids=1` - ASTEROIDS!
- `timallen=1` - Tim Allen's AUUUGH?!

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

Expand Down
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
<audio id="pew" src="pew.mp3" preload="auto"></audio>
<audio id="galaga" src="shot_sound.mp3" preload="auto"></audio>
<audio id="asteroids" src="asteroids.mp3" preload="auto"></audio>
<audio id="timallen" src="timallen.wav" preload="auto"></audio>

<center><div id="container1"></div></center>
<div id="titlediv">IPew Attack Map</div>
Expand Down Expand Up @@ -162,7 +163,7 @@ <h3>About IPew</h3>

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

audio_type = [ "starwars", "tng", "b5", "wargames", "pew", "galaga", "asteroids" ]
audio_type = [ "starwars", "tng", "b5", "wargames", "pew", "galaga", "asteroids", "timallen" ]

// need this to more easily grab URI query parameters
$.extend({
Expand Down Expand Up @@ -204,6 +205,7 @@ <h3>About IPew</h3>
var allfx = $.getUrlVar('allfx')
var galaga = $.getUrlVar('galaga')
var asteroids = $.getUrlVar('asteroids')
var timallen = $.getUrlVar('timallen')
var drill_mode = $.getUrlVar("drill_mode")
var in_lat = $.getUrlVar("lat")
var in_lon = $.getUrlVar("lon")
Expand All @@ -218,6 +220,7 @@ <h3>About IPew</h3>
if (typeof pew !== 'undefined') { snd_id = "pew" ; }
if (typeof galaga !== 'undefined') { snd_id = "galaga" ; }
if (typeof asteroids !== 'undefined') { snd_id = "asteroids" ; }
if (typeof timallen !== 'undefined') { snd_id = "timallen" ; }

if (typeof bad_day !== 'undefined') {
attack_min=200;
Expand Down
Binary file added timallen.wav
Binary file not shown.

0 comments on commit 6ff7b26

Please sign in to comment.