diff --git a/src/main.js b/src/main.js index fdfc9ac..621e8ae 100644 --- a/src/main.js +++ b/src/main.js @@ -52,6 +52,11 @@ function mousePressed() { function keyPressed() { if (key === ' ') { // reset score and targets + gun.remainingShots = TOT_SHOTS; + score.shotLeft = TOT_SHOTS; + + score.score = 0; + } }