1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-12 21:58:12 +09:00

update sound

This commit is contained in:
syuilo 2024-01-09 16:06:22 +09:00
parent 0d7f9308cc
commit 14aedc17ae
3 changed files with 3 additions and 4 deletions

Binary file not shown.

View File

@ -387,9 +387,8 @@ export class DropAndFusionGame extends EventEmitter<{
public drop(_x: number) { public drop(_x: number) {
if (this.isGameOver) return; if (this.isGameOver) return;
if (Date.now() - this.latestDroppedAt < this.DROP_INTERVAL) { if (Date.now() - this.latestDroppedAt < this.DROP_INTERVAL) return;
return;
}
const head = this.stock.shift()!; const head = this.stock.shift()!;
this.stock.push({ this.stock.push({
id: Math.random().toString(), id: Math.random().toString(),
@ -435,7 +434,7 @@ export class DropAndFusionGame extends EventEmitter<{
} }
sound.playUrl('/client-assets/drop-and-fusion/hold.mp3', { sound.playUrl('/client-assets/drop-and-fusion/hold.mp3', {
volume: this.sfxVolume, volume: 0.5 * this.sfxVolume,
}); });
} }