添加射击无效语音
This commit is contained in:
@@ -45,6 +45,8 @@ const audioFils = {
|
|||||||
"https://static.shelingxingqiu.com/attachment/2025-07-14/dbbkll0gsuumekhpkn.mp3",
|
"https://static.shelingxingqiu.com/attachment/2025-07-14/dbbkll0gsuumekhpkn.mp3",
|
||||||
"10环":
|
"10环":
|
||||||
"https://static.shelingxingqiu.com/attachment/2025-07-14/dbbklgw2dk22ek7qha.mp3",
|
"https://static.shelingxingqiu.com/attachment/2025-07-14/dbbklgw2dk22ek7qha.mp3",
|
||||||
|
射击无效:
|
||||||
|
"https://static.shelingxingqiu.com/attachment/2025-08-26/dcc9qc84rir8gkj3mo.mp3",
|
||||||
};
|
};
|
||||||
|
|
||||||
class AudioManager {
|
class AudioManager {
|
||||||
|
|||||||
@@ -60,9 +60,10 @@ async function onReceiveMessage(messages = []) {
|
|||||||
}
|
}
|
||||||
} else if (msg.constructor === MESSAGETYPES.InvalidShot) {
|
} else if (msg.constructor === MESSAGETYPES.InvalidShot) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "无效射击",
|
title: "距离不足,无效",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
});
|
});
|
||||||
|
audioManager.play("射击无效");
|
||||||
} else if (msg.constructor === MESSAGETYPES.AllReady) {
|
} else if (msg.constructor === MESSAGETYPES.AllReady) {
|
||||||
currentRoundEnded.value = true;
|
currentRoundEnded.value = true;
|
||||||
audioManager.play("比赛开始");
|
audioManager.play("比赛开始");
|
||||||
|
|||||||
@@ -137,9 +137,10 @@ async function onReceiveMessage(messages = []) {
|
|||||||
}
|
}
|
||||||
} else if (msg.constructor === MESSAGETYPES.InvalidShot) {
|
} else if (msg.constructor === MESSAGETYPES.InvalidShot) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "无效射击",
|
title: "距离不足,无效",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
});
|
});
|
||||||
|
audioManager.play("射击无效");
|
||||||
} else if (msg.constructor === MESSAGETYPES.AllReady) {
|
} else if (msg.constructor === MESSAGETYPES.AllReady) {
|
||||||
audioManager.play("比赛开始");
|
audioManager.play("比赛开始");
|
||||||
} else if (msg.constructor === MESSAGETYPES.MeleeAllReady) {
|
} else if (msg.constructor === MESSAGETYPES.MeleeAllReady) {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export const MESSAGETYPES = {
|
|||||||
RankUpdate: 1121669910,
|
RankUpdate: 1121669910,
|
||||||
LvlUpdate: 3958625354,
|
LvlUpdate: 3958625354,
|
||||||
TeamUpdate: 4168086616,
|
TeamUpdate: 4168086616,
|
||||||
InvalidShot: 4468086617,
|
InvalidShot: 4168086617,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const topThreeColors = ["#FFD947", "#D2D2D2", "#FFA515"];
|
export const topThreeColors = ["#FFD947", "#D2D2D2", "#FFA515"];
|
||||||
|
|||||||
Reference in New Issue
Block a user