fix: play SFX.boot() on user tap instead of setTimeout
This commit is contained in:
1 parent
0adbdfc106
commit
1e43dc4dce
1 file changed
+1
-1
@@ -1152,10 +1152,10 @@ class Game {
|
|||||||
|
|
||||||
showTitle() {
|
showTitle() {
|
||||||
this.show('title');
|
this.show('title');
|
||||||
SFX.boot();
|
|
||||||
this._showController(true);
|
this._showController(true);
|
||||||
const go = () => {
|
const go = () => {
|
||||||
document.getElementById('screen-title').removeEventListener('click', go);
|
document.getElementById('screen-title').removeEventListener('click', go);
|
||||||
|
SFX.boot();
|
||||||
Music.unblock();
|
Music.unblock();
|
||||||
this.showContinueOrName();
|
this.showContinueOrName();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user