Skip to content

Commit

Permalink
Added text popup sound
Browse files Browse the repository at this point in the history
  • Loading branch information
vjsingh committed Apr 28, 2011
1 parent 1d8f592 commit 358c64c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions in_game_state.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ var in_game_state = function (p, previous_state, game_type) {
all_buttons.push(close_button);

tut_window = tut_popup(text);
sounds.play_sound("TextPopUp");
};

var tut_obj = {
Expand Down
4 changes: 3 additions & 1 deletion index1.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
Google Chrome has no problems, and is highly recommended for the best overall performance<br/>
If you are using Firefox 3 and the game is not loading or running slowly, try updating to Firefox 4<br/>
If you are using Safari and seeing performance issues, try turning off the sound effects<br/>
If you are using Internet Explorer, please switch to any of the above browsers immediately!
If you are using Internet Explorer, please ensure that you have updated to the latest version (Internet Explorer 9), or the game will not run.
<br/><br/> </div>
</div>
</div>
Expand Down Expand Up @@ -231,6 +231,8 @@
</audio>
<audio id="kill" src="sounds/kill.ogg">
</audio>
<audio id="TextPopUp" src="sounds/TextPopUp.ogg">
</audio>
<!-- Sounds and Images -->
<!--
<script src="processing-1.0.0.min.js"></script>
Expand Down
2 changes: 2 additions & 0 deletions php_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ function data_uri($file, $file_type)
"kill" : "<?php echo data_uri('sounds/kill.ogg', "ogg");?>",
"buttonmain" : "<?php echo data_uri('sounds/buttonmain.ogg', "ogg");?>",
"buttonback" : "<?php echo data_uri('sounds/buttonback.ogg', "ogg");?>",
"TextPopUp" : "<?php echo data_uri('sounds/TextPopUp.ogg', "ogg");?>",
"cell_firemp3" : "<?php echo data_uri('sounds/cell_fire.mp3', "mp3");?>",
"cell_infectmp3" : "<?php echo data_uri('sounds/cell_infect.mp3', "mp3");?>",
"macrophage_infectmp3" : "<?php echo data_uri('sounds/macrophage_infect.mp3', "mp3");?>",
"level_upmp3" : "<?php echo data_uri('sounds/level_up.mp3', "mp3");?>",
"killmp3" : "<?php echo data_uri('sounds/kill.mp3', "mp3");?>",
"buttonmainmp3" : "<?php echo data_uri('sounds/buttonmain.mp3', "mp3");?>",
"buttonbackmp3" : "<?php echo data_uri('sounds/buttonback.mp3', "mp3");?>",
"TextPopUpmp3" : "<?php echo data_uri('sounds/TextPopUp.mp3', "mp3");?>",
};

/*
Expand Down

0 comments on commit 358c64c

Please sign in to comment.