1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-10-30 06:41:46 +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) {
if (this.isGameOver) return;
if (Date.now() - this.latestDroppedAt < this.DROP_INTERVAL) {
return;
}
if (Date.now() - this.latestDroppedAt < this.DROP_INTERVAL) return;
const head = this.stock.shift()!;
this.stock.push({
id: Math.random().toString(),
@ -435,7 +434,7 @@ export class DropAndFusionGame extends EventEmitter<{
}
sound.playUrl('/client-assets/drop-and-fusion/hold.mp3', {
volume: this.sfxVolume,
volume: 0.5 * this.sfxVolume,
});
}