fix: unlock iOS audio on title tap via Music.play() before SFX.boot()

This commit is contained in:
Sterling Archer committed 2026-05-31 14:39:51 -07:00
1 parent 94e1b59389
commit d3abe9bce7
1 file changed
+2 -2
+2 -2
View File
@@ -1150,11 +1150,11 @@ class Game {
showTitle() {
this.show('title');
SFX.boot();
this._showController(true);
const go = () => {
document.getElementById('screen-title').removeEventListener('click', go);
Music.unblock();
Music.play();
SFX.boot();
this.showContinueOrName();
};
document.getElementById('screen-title').addEventListener('click', go);