properly time based

This commit is contained in:
Garrett Finucane 2014-08-17 23:58:17 -04:00
parent 9a0e11d4b7
commit d49100924c
2 changed files with 4 additions and 2 deletions

View file

@ -15,6 +15,7 @@ function Hex(sideLength) {
this.x = trueCanvas.width / 2;
this.y = trueCanvas.height / 2;
this.ct = 0;
this.lastUpdate = Date.now();
this.lastCombo = this.ct - settings.comboTime;
this.lastColorScored = "#000";
this.comboTime = 1;

View file

@ -67,6 +67,7 @@ function update() {
i--;
}
}
MainHex.ct++;
if(Date.now()-MainHex.lastUpdate>=17){
MainHex.ct++;
}
}