Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentBounce committed Mar 6, 2024
1 parent dd85019 commit b40d23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tetrilight.source.js
Original file line number Diff line number Diff line change
Expand Up @@ -1086,8 +1086,8 @@ TetrisGrid.prototype = {
},
chooseControlAction(keyboardEvent) { //no controls during animations, this.isGridAvailableToPlay solves bug of not reloading on keyup after a drop
if (GAME._gameState === GAME_STATES.runningBeforeKeyPressed) { // Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD
AUDIO.audioPlay('musicMusic');
GAME._gameState = GAME_STATES.running;
AUDIO.audioPlay('musicMusic');
}
if ( (this.isGridAvailableToPlay()) && keyboardEvent.type === 'keydown') switch (keyboardEvent.code) {
case this._playerKeysSet.keys[0]: // UP
Expand Down

0 comments on commit b40d23b

Please sign in to comment.