This commit is contained in:
syuilo 2024-01-09 21:14:49 +09:00
parent 31a25f9332
commit 7627da62ee
2 changed files with 5 additions and 0 deletions

Binary file not shown.

View file

@ -291,6 +291,11 @@ export class DropAndFusionGame extends EventEmitter<{
if (this.tickRaf) window.cancelAnimationFrame(this.tickRaf);
this.tickRaf = null;
this.emit('gameOver');
// TODO: 効果音再生はコンポーネント側の責務なので移動する
sound.playUrl('/client-assets/drop-and-fusion/gameover.mp3', {
volume: this.sfxVolume,
});
}
/** テクスチャをすべてキャッシュする */