Version 0.2e :
- Add Sound for Game Over
This commit is contained in:
parent
38f42409a8
commit
789ce423f8
7 changed files with 19 additions and 5 deletions
BIN
audio/bg_music.mp3
Normal file
BIN
audio/bg_music.mp3
Normal file
Binary file not shown.
Binary file not shown.
BIN
audio/game-over.mp3
Normal file
BIN
audio/game-over.mp3
Normal file
Binary file not shown.
BIN
audio/game-over.ogg
Executable file
BIN
audio/game-over.ogg
Executable file
Binary file not shown.
|
@ -73,7 +73,7 @@
|
|||
<!-- The footer... -->
|
||||
<footer id="credits" class="">
|
||||
<strong>HTML5 Game Jam 2011</strong><br>
|
||||
<strong><a href="https://github.com/glenux/wyrian" target="_blank" title="View Project on GitHub" class="game">..:: Wyrian v<span id="version">0.2d</span> ::..</a></strong> | <a href="http://www.html5place.com/" title="View my Website" class="author">Guillaume DE LA RUE</a><br>Thanks to <a href="https://github.com/glenux" target="_blank" title="View profile of Glenux on GitHub" class="quote">Glenux</a> for design and Matthieu Bosquet<br>And everyone present at the HTML5 Game Jam :)
|
||||
<strong><a href="https://github.com/glenux/wyrian" target="_blank" title="View Project on GitHub" class="game">..:: Wyrian v<span id="version">0.2e</span> ::..</a></strong> | <a href="http://www.html5place.com/" title="View my Website" class="author">Guillaume DE LA RUE</a><br>Thanks to <a href="https://github.com/glenux" target="_blank" title="View profile of Glenux on GitHub" class="quote">Glenux</a> for design and Matthieu Bosquet<br>And everyone present at the HTML5 Game Jam :)
|
||||
</footer>
|
||||
|
||||
<!-- Main JS Libs -->
|
||||
|
|
|
@ -97,6 +97,9 @@ jQuery(document).ready(function() {
|
|||
$('#game-over:hidden').fadeIn(500) ;
|
||||
$('#ground, #ship').fadeTo(500, 0.2) ;
|
||||
|
||||
// -- Play Sound
|
||||
soundManager.play('gameOver') ;
|
||||
|
||||
// -- Stop loopAnimation
|
||||
if ( timers.loopGame ) clearInterval(timers.loopGame) ;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
soundManager.useFlashBlock = false;
|
||||
soundManager.bgColor = '#ffffff';
|
||||
soundManager.debugMode = false;
|
||||
soundManager.url = 'http://patator.socialmixmedia.fr/assets/js/soundmanager/swf/';
|
||||
soundManager.url = 'js/libs/soundmanager/swf/';
|
||||
soundManager.wmode = 'transparent'; // hide initial flash of white on everything except firefox/win32
|
||||
soundManager.allowScriptAccess = 'always';
|
||||
soundManager.useFastPolling = true;
|
||||
|
@ -40,7 +40,7 @@
|
|||
soundManager.createSound({
|
||||
id: 'click',
|
||||
url: 'audio/click.ogg',
|
||||
autoLoad: true,
|
||||
autoLoad: false,
|
||||
autoPlay: false,
|
||||
multiShot: false,
|
||||
volume: 50
|
||||
|
@ -50,7 +50,7 @@
|
|||
soundManager.createSound({
|
||||
id: 'shoot',
|
||||
url: 'audio/big_laser.ogg',
|
||||
autoLoad: true,
|
||||
autoLoad: false,
|
||||
autoPlay: false,
|
||||
multiShot: true,
|
||||
volume: 30
|
||||
|
@ -60,12 +60,23 @@
|
|||
soundManager.createSound({
|
||||
id: 'explode',
|
||||
url: 'audio/explode.ogg',
|
||||
autoLoad: true,
|
||||
autoLoad: false,
|
||||
autoPlay: false,
|
||||
multiShot: true,
|
||||
volume: 10
|
||||
});
|
||||
|
||||
// -- Game Over
|
||||
soundManager.createSound({
|
||||
id: 'gameOver',
|
||||
url: 'audio/game-over.ogg',
|
||||
autoLoad: false,
|
||||
autoPlay: false,
|
||||
multiShot: true,
|
||||
volume: 10
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
soundManager.ontimeout(function() {
|
||||
|
|
Loading…
Reference in a new issue