Skip to content

Commit

Permalink
Fixed timers
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskoluris committed Dec 10, 2020
1 parent 036f2c2 commit bbae905
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,17 @@ GameBowie.CstrTimers = function() {
// Exposed class functions/variables
return {
reset() {
enabled = false;
frames = 0;
divFrames = 0;
div = 0;
tima = 0;
tma = 0;
},

step() {
if (++divFrames >= DIV_SPEED) {
divFrames = 0;
divFrames = 0;
div++;
}

Expand Down

0 comments on commit bbae905

Please sign in to comment.