Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Pushkar021 authored May 30, 2024
1 parent 4e7a08e commit 4bbd57b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Simon-Game-Using-js/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const handlePanelClick = (event) => {
console.log("Flashes per round:", flashesPerRound);

playRound();
}, 700);
}, 100);
}, 500);
}, 1);
}
} else {
points = 0;
Expand All @@ -66,7 +66,7 @@ const playRound = async () => {

for (const panel of gamePattern) {
await flash(panel);
await new Promise((resolve) => setTimeout(resolve, 300));
await new Promise((resolve) => setTimeout(resolve, 400));
}
};

Expand Down Expand Up @@ -120,7 +120,7 @@ bottomleft.addEventListener("click", () => {
});

function playSound(name) {
let audio = new Audio("../public/sounds_" + name + ".mp3");
let audio = new Audio("sounds_" + name + ".mp3");
audio.play();
}

Expand Down

0 comments on commit 4bbd57b

Please sign in to comment.