mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 06:23:09 +02:00
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) {
|
||||
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 a new issue