update sound
This commit is contained in:
parent
0d7f9308cc
commit
14aedc17ae
3 changed files with 3 additions and 4 deletions
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) {
|
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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue