new awesome sfx from 2bt

This commit is contained in:
Astro 2011-10-15 14:56:32 +02:00
parent 03561a8e7f
commit 574978b937
6 changed files with 11 additions and 3 deletions

BIN
gameover.ogg Normal file

Binary file not shown.

View File

@ -120,10 +120,12 @@
</div> </div>
<div style="display: none"> <div style="display: none">
<audio src="richtig.ogg" id="audio_right"></audio> <audio src="slay.ogg" id="audio_right"></audio>
<audio src="falsch.ogg" id="audio_wrong"></audio> <audio src="gameover.ogg" id="audio_wrong"></audio>
<audio src="timeout.ogg" id="audio_timeout"></audio> <audio src="timeout.ogg" id="audio_timeout"></audio>
<audio src="timeup.ogg" id="audio_timeup"></audio>
<audio src="buzz.ogg" id="audio_buzz"></audio> <audio src="buzz.ogg" id="audio_buzz"></audio>
<audio src="levelcomplete.ogg" id="audio_final"></audio>
</div> </div>
</body> </body>
</html> </html>

BIN
levelcomplete.ogg Normal file

Binary file not shown.

View File

@ -106,10 +106,14 @@ Timer.prototype.set = function(t, cb) {
if (t > 0) { if (t > 0) {
t--; t--;
$('#timer').text('' + t); $('#timer').text('' + t);
if (t > 21 && t < 23) { if (t > 25 && t < 27) {
$('#audio_timeout')[0].load(); $('#audio_timeout')[0].load();
$('#audio_timeout')[0].play(); $('#audio_timeout')[0].play();
} }
if (t > 0 && t < 2) {
$('#audio_timeup')[0].load();
$('#audio_timeup')[0].play();
}
} else { } else {
that.elapse(); that.elapse();
} }
@ -180,6 +184,8 @@ function switchToScoreboard() {
} }
$('#scoreboard').fadeIn(300); $('#scoreboard').fadeIn(300);
if (currentQuestion >= questions.length)
$('#audio_final')[0].play();
} }
function updateScores() { function updateScores() {

BIN
slay.ogg Normal file

Binary file not shown.

BIN
timeup.ogg Normal file

Binary file not shown.