Added ending sound
This commit is contained in:
Binary file not shown.
Vendored
+2
-1
@@ -42,7 +42,8 @@ Coin.prototype.get = function() {
|
||||
Coin.total ++;
|
||||
Coin.nextSound.play();
|
||||
if (Coin.total === 9) {
|
||||
alert("You got all the red coins !");
|
||||
var audio = new Audio('/static/data/music/starappears.mp3');
|
||||
audio.play();
|
||||
} else {
|
||||
Coin.nextSound = new Audio('/static/data/music/redcoins/' + Coin.total + '.mp3');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user