mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-12 21:58:12 +09:00
update sound
This commit is contained in:
parent
0d7f9308cc
commit
14aedc17ae
BIN
packages/frontend/assets/drop-and-fusion/click.mp3
Normal file
BIN
packages/frontend/assets/drop-and-fusion/click.mp3
Normal file
Binary file not shown.
Binary file not shown.
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user