made game time based, made game faster

This commit is contained in:
lengstrom 2014-08-18 19:55:50 -04:00
parent 8350bb622c
commit 729245fdd0
2 changed files with 3 additions and 4 deletions

View file

@ -37,7 +37,6 @@ function descaleBlock(b) {
} }
function writeHighScores() { function writeHighScores() {
debugger;
highscores.sort( highscores.sort(
function(a,b){ function(a,b){
a = parseInt(a, 10); a = parseInt(a, 10);

View file

@ -1,6 +1,6 @@
function blockDestroyed() { function blockDestroyed() {
if (waveone.nextGen > 1350) { if (waveone.nextGen > 1350) {
waveone.nextGen -= 30 * settings.creationSpeedModifier; waveone.nextGen -= 37 * settings.creationSpeedModifier;
} else if (waveone.nextGen > 600) { } else if (waveone.nextGen > 600) {
waveone.nextGen -= 15 * settings.creationSpeedModifier; waveone.nextGen -= 15 * settings.creationSpeedModifier;
} else { } else {
@ -8,7 +8,7 @@ function blockDestroyed() {
} }
if (waveone.difficulty < 35) { if (waveone.difficulty < 35) {
waveone.difficulty += 0.13 * settings.speedModifier; waveone.difficulty += 0.17 * settings.speedModifier;
} else { } else {
waveone.difficulty = 35; waveone.difficulty = 35;
} }
@ -26,7 +26,7 @@ function waveGen(hex) {
this.dt = 0; this.dt = 0;
this.update = function() { this.update = function() {
this.currentFunction(); this.currentFunction();
this.dt = MainHex.dt * 17; this.dt = MainHex.ct * 16.6666667;
this.computeDifficulty(); this.computeDifficulty();
if ((this.dt - this.lastGen) * settings.creationSpeedModifier > this.nextGen) { if ((this.dt - this.lastGen) * settings.creationSpeedModifier > this.nextGen) {
if (this.nextGen > 600) { if (this.nextGen > 600) {