diff --git a/src/main.ts b/src/main.ts index fa71635..2e0dd51 100644 --- a/src/main.ts +++ b/src/main.ts @@ -33,10 +33,12 @@ window.onload = async () => { introScene.render(container); introScene.onComplete(() => { introScene.destroy() + soundManager.play('background'); gameScene.render(container); }); gameScene.onComplete(() => { + soundManager.pause('background'); gameScene.destroy(); winScene.render(container); })