Commit c58e0909 by kaisa

feat:测试

parent cbf18de8
...@@ -795,6 +795,7 @@ ...@@ -795,6 +795,7 @@
"" + data.result.shipData.launchHeight + "" + textArr[0] + "" "" + data.result.shipData.launchHeight + "" + textArr[0] + ""
); );
}, 350); }, 350);
betBoom();
//这时候爆炸了 //这时候爆炸了
$(".out-fly-box >div") $(".out-fly-box >div")
.unbind("click") .unbind("click")
...@@ -1138,7 +1139,7 @@ ...@@ -1138,7 +1139,7 @@
" DEWs rewards.</div>" " DEWs rewards.</div>"
); );
myDiamond(); myDiamond();
betWin(); betBoom();
jumpOk = true; jumpOk = true;
} else { } else {
layer.msg(data.msg); layer.msg(data.msg);
......
...@@ -110,52 +110,29 @@ function appCollaboration(msg) { ...@@ -110,52 +110,29 @@ function appCollaboration(msg) {
} }
} catch (e) {} } catch (e) {}
} }
// 判断背景音是否开启/关闭
function isBgMusicClose() {
let isMuted = mAudios.bgm.muted;
// layer.msg(isMuted);
return isMuted;
}
// 露水音效 // 露水音效
function betSound() { function betSound() {
isBgMusicClose(); isBgMusicClose();
// const flag = isBgMusicClose();
// if (flag) {
// return;
// }
mAudios.water.play(); mAudios.water.play();
} }
// 中奖音效 // 中奖音效
function betWin() { function betWin() {
// const flag = isBgMusicClose();
// if (flag) {
// return;
// }
mAudios.betWin.play(); mAudios.betWin.play();
} }
// 爆炸音效+未中奖音效 // 爆炸音效+未中奖音效
function betLose() { function betLose() {
// const flag = isBgMusicClose();
// if (flag) {
// return;
// }
mAudios.boom.play(); mAudios.boom.play();
mAudios.betLose.play(); mAudios.betLose.play();
} }
function betBoom() {
mAudios.boom.play();
}
// 火箭升空音效 // 火箭升空音效
function rocket() { function rocket() {
// const flag = isBgMusicClose();
// if (flag) {
// return;
// }
mAudios.rocket.play(); mAudios.rocket.play();
} }
// 停止播放火箭升空音效 // 停止播放火箭升空音效
function rocketStop() { function rocketStop() {
// const flag = isBgMusicClose();
// if (flag) {
// return;
// }
mAudios.rocket.pause(); mAudios.rocket.pause();
} }
......
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