Commit 592a880e by kaisa

feat:优化火箭升空音效

parent 82243658
......@@ -537,6 +537,7 @@
}, 70);
}
function boomShow() {
rocketStop();
var boomNum = 252;
$(".fly").fadeOut(350);
betLose();
......@@ -695,7 +696,7 @@
.removeClass("n0 n1 n2 n3 n4 n5 n6 n7 n8 n9")
.addClass("n" + numArr[1] + "");
if (numArr[1] == 3) {
if (numArr[1] == 0 && numArr[1] == 3) {
// 倒计时3s的时候播放倒计时音效
clock();
}
......
......@@ -128,6 +128,11 @@ function betLose() {
function rocket() {
mAudios.rocket.play();
}
// 停止播放火箭升空音效
function rocketStop() {
mAudios.rocket.pause();
}
// 倒计时音效
function clock() {
mAudios.clock.play();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment