新版本

This commit is contained in:
xsl
2026-05-19 00:34:23 +08:00
parent b90238975f
commit 0f1b70b1a9
124 changed files with 1543 additions and 170 deletions
+14
View File
@@ -260,6 +260,20 @@ const SFX_UI = {
setTimeout(() => Snd.synth({ freq: 523, dur: 100, vol: 0.13 }), 120);
},
// 打字/录音音效(~800ms
typing() {
for (let i = 0; i < 6; i++) {
setTimeout(() => {
Snd.synth({ freq: 600 + Math.random() * 200, dur: 30, type: 'sine', vol: 0.1 });
}, i * 120);
}
},
// 发送音效
send() {
Snd.synth({ freq: 400, freq2: 900, dur: 120, type: 'sine', vol: 0.18 });
},
// 结局音效
ending() {
Snd.synth({ freq: 523, dur: 400, vol: 0.25 });