fix: call Music.play() on title tap to unlock iOS audio system for SFX
This commit is contained in:
@@ -1154,8 +1154,8 @@ class Game {
|
|||||||
this._showController(true);
|
this._showController(true);
|
||||||
const go = () => {
|
const go = () => {
|
||||||
document.getElementById('screen-title').removeEventListener('click', go);
|
document.getElementById('screen-title').removeEventListener('click', go);
|
||||||
|
Music.play();
|
||||||
SFX.boot();
|
SFX.boot();
|
||||||
Music.unblock();
|
|
||||||
this.showContinueOrName();
|
this.showContinueOrName();
|
||||||
};
|
};
|
||||||
document.getElementById('screen-title').addEventListener('click', go);
|
document.getElementById('screen-title').addEventListener('click', go);
|
||||||
|
|||||||
Reference in New Issue
Block a user