Commit 592a880e by kaisa

feat:优化火箭升空音效

parent 82243658
...@@ -537,6 +537,7 @@ ...@@ -537,6 +537,7 @@
}, 70); }, 70);
} }
function boomShow() { function boomShow() {
rocketStop();
var boomNum = 252; var boomNum = 252;
$(".fly").fadeOut(350); $(".fly").fadeOut(350);
betLose(); betLose();
...@@ -695,7 +696,7 @@ ...@@ -695,7 +696,7 @@
.removeClass("n0 n1 n2 n3 n4 n5 n6 n7 n8 n9") .removeClass("n0 n1 n2 n3 n4 n5 n6 n7 n8 n9")
.addClass("n" + numArr[1] + ""); .addClass("n" + numArr[1] + "");
if (numArr[1] == 3) { if (numArr[1] == 0 && numArr[1] == 3) {
// 倒计时3s的时候播放倒计时音效 // 倒计时3s的时候播放倒计时音效
clock(); clock();
} }
......
...@@ -128,6 +128,11 @@ function betLose() { ...@@ -128,6 +128,11 @@ function betLose() {
function rocket() { function rocket() {
mAudios.rocket.play(); mAudios.rocket.play();
} }
// 停止播放火箭升空音效
function rocketStop() {
mAudios.rocket.pause();
}
// 倒计时音效 // 倒计时音效
function clock() { function clock() {
mAudios.clock.play(); 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