Skip to content

Commit

Permalink
Fix key press problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Bit-Mayank committed Apr 21, 2024
1 parent 2b5f521 commit 60c89e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function startover() {
}

$(document).keydown(function (event) {
if ((event.key == 'a' || event.key == 'A') && firstTime == true) {
if (firstTime == true) {
nextSequence();
firstTime = false;
}
Expand Down

0 comments on commit 60c89e8

Please sign in to comment.