Commit 3547b3ad by kaisa

feat:更新火箭升空音效

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