Skip to content

Commit

Permalink
Update game.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NatanTezare authored Sep 18, 2024
1 parent 31c38a6 commit a4f4222
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var userClickedPattern = [];
var started = false;
var level = 0;

$(document).keypress(function() {
$(document).on("keypress touchstart", function() {
if (!started) {
$("#level-title").text("Level " + level);
nextSequence();
Expand Down Expand Up @@ -89,4 +89,4 @@ function startOver(){
started=false;
gamePattern=[];
level=0;
}
}

0 comments on commit a4f4222

Please sign in to comment.