添加音频文件
This commit is contained in:
+10
-10
@@ -95,7 +95,7 @@ class GameEngine {
|
||||
|
||||
// 开始主BGM
|
||||
await sleep(3000);
|
||||
Snd.startBGM(`${MUS}/lv11_bgm_m1_main_loop_v1.wav`, { vol: 0.3 });
|
||||
Snd.startBGM(`${MUS}/lv11_bgm_m1_main_loop_v1.mp3`, { vol: 0.3 });
|
||||
}
|
||||
|
||||
_scheduleSpecialEvents() {
|
||||
@@ -116,7 +116,7 @@ class GameEngine {
|
||||
if (this.vars.HE_BACK === true && !this._doorbell) {
|
||||
this._doorbell = true;
|
||||
Snd.playFX ? null : null;
|
||||
Snd.playVoice([`${SFX}/sfx_door_knock_gentle_v1.wav`]);
|
||||
Snd.playVoice([`${SFX}/sfx_door_knock_gentle_v1.mp3`]);
|
||||
Haptic.ring();
|
||||
}
|
||||
});
|
||||
@@ -128,7 +128,7 @@ class GameEngine {
|
||||
const unread = Object.values(this.msgState).filter(s => s === 'unread').length
|
||||
+ (Object.keys(this.msgState).length === 0 ? MESSAGES.length : 0);
|
||||
if (this.vars.UNREAD >= 8) {
|
||||
Snd.playVoice([`${TDIR}/lv11_sys_battery_01_wav_v1.wav`]);
|
||||
Snd.playVoice([`${TDIR}/lv11_sys_battery_01_wav_v1.mp3`]);
|
||||
Haptic.system();
|
||||
}
|
||||
}
|
||||
@@ -716,13 +716,13 @@ class GameEngine {
|
||||
|
||||
async _endingA() {
|
||||
// 妈妈语音播完→厨房→烧水
|
||||
Snd.startAmbience(`${AMB}/amb_kitchen_morning_v1.wav`, { vol: 0.3 });
|
||||
Snd.startAmbience(`${AMB}/amb_kitchen_morning_v1.mp3`, { vol: 0.3 });
|
||||
await sleep(2000);
|
||||
Snd.playVoice([`${SFX}/sfx_kettle_whistle_v1.wav`]);
|
||||
Snd.playVoice([`${SFX}/sfx_kettle_whistle_v1.mp3`]);
|
||||
await sleep(4000);
|
||||
this._showCaption('明天再说。');
|
||||
await sleep(3000);
|
||||
Snd.playVoice([`${SFX}/sfx_ending_chime_v1.wav`]);
|
||||
Snd.playVoice([`${SFX}/sfx_ending_chime_v1.mp3`]);
|
||||
}
|
||||
|
||||
async _endingB() {
|
||||
@@ -741,13 +741,13 @@ class GameEngine {
|
||||
}
|
||||
|
||||
async _endingD() {
|
||||
Snd.playVoice([`${TDIR}/lv11_sys_battery_01_wav_v1.wav`]);
|
||||
Snd.playVoice([`${TDIR}/lv11_sys_battery_01_wav_v1.mp3`]);
|
||||
await sleep(2000);
|
||||
Haptic.ring();
|
||||
await sleep(1000);
|
||||
// 屏幕"彻底黑了"→清晨鸟叫
|
||||
await sleep(3000);
|
||||
Snd.startAmbience(`${AMB}/amb_dawn_birds_v1.wav`, { vol: 0.4 });
|
||||
Snd.startAmbience(`${AMB}/amb_dawn_birds_v1.mp3`, { vol: 0.4 });
|
||||
await sleep(4000);
|
||||
this._showCaption('早上好。');
|
||||
}
|
||||
@@ -759,11 +759,11 @@ class GameEngine {
|
||||
await TTS.speak('那我下次出差来北京,请你吃饭好不好。', { rate: 0.9 });
|
||||
await sleep(2000);
|
||||
// 林夏的轻笑(用self3y音色)
|
||||
Snd.playVoice([`${TDIR}/lv11_sys_goodnight_wav_v1.wav`]);
|
||||
Snd.playVoice([`${TDIR}/lv11_sys_goodnight_wav_v1.mp3`]);
|
||||
await sleep(3000);
|
||||
this._showCaption('好。');
|
||||
await sleep(2000);
|
||||
Snd.playVoice([`${SFX}/sfx_ending_chime_v1.wav`]);
|
||||
Snd.playVoice([`${SFX}/sfx_ending_chime_v1.mp3`]);
|
||||
}
|
||||
|
||||
_showCaption(text) {
|
||||
|
||||
Reference in New Issue
Block a user