Commit 3547b3ad by kaisa

feat:更新火箭升空音效

parent 6fec965c
Showing with 21 additions and 21 deletions
......@@ -113,48 +113,48 @@ function appCollaboration(msg) {
// 判断背景音是否开启/关闭
function isBgMusicClose() {
let isMuted = mAudios.bgm.muted;
layer.msg(isMuted);
return isMuted;
}
// 露水音效
function betSound() {
const flag = isBgMusicClose();
if (flag) {
return;
}
// const flag = isBgMusicClose();
// if (flag) {
// return;
// }
mAudios.water.play();
}
// 中奖音效
function betWin() {
const flag = isBgMusicClose();
if (flag) {
return;
}
// const flag = isBgMusicClose();
// if (flag) {
// return;
// }
mAudios.betWin.play();
}
// 爆炸音效+未中奖音效
function betLose() {
const flag = isBgMusicClose();
if (flag) {
return;
}
// const flag = isBgMusicClose();
// if (flag) {
// return;
// }
mAudios.boom.play();
mAudios.betLose.play();
}
// 火箭升空音效
function rocket() {
const flag = isBgMusicClose();
if (flag) {
return;
}
// const flag = isBgMusicClose();
// if (flag) {
// return;
// }
mAudios.rocket.play();
}
// 停止播放火箭升空音效
function rocketStop() {
const flag = isBgMusicClose();
if (flag) {
return;
}
// const flag = isBgMusicClose();
// if (flag) {
// return;
// }
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