Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPJB committed Jan 24, 2024
1 parent 6cac49a commit 65b8679
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/core/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default class Game {
this.button = document.getElementById(id);
this.clicks = 0;
this.clicksAdder = 0;
this.clicksPerSecondAdder = 0;
this.lastClickTime = 0;
this.store = null;

Expand All @@ -32,6 +33,8 @@ export default class Game {
* Interval handler.
*/
interval() {
console.log(this.clicksPerSecondAdder);
this.clicks += 1 * this.clicksPerSecondAdder;
this.renderSpan();
}

Expand Down Expand Up @@ -124,6 +127,7 @@ export default class Game {
resetGameProperties() {
this.clicks = 0;
this.clicksAdder = 0;
this.clicksPerSecondAdder = 0;
this.lastClickTime = 0;
this.store = null;
this.clickIntervals = [];
Expand Down

0 comments on commit 65b8679

Please sign in to comment.