made game slower

This commit is contained in:
lengstrom 2014-08-26 01:16:44 -04:00
parent 16027b909f
commit e357e6665e

View file

@ -1,14 +1,14 @@
function blockDestroyed() {
if (waveone.nextGen > 1350) {
waveone.nextGen -= 26 * settings.creationSpeedModifier;
waveone.nextGen -= 19 * settings.creationSpeedModifier;
} else if (waveone.nextGen > 600) {
waveone.nextGen -= 13 * settings.creationSpeedModifier;
waveone.nextGen -= 9 * settings.creationSpeedModifier;
} else {
waveone.nextGen = 600;
}
if (waveone.difficulty < 35) {
waveone.difficulty += 0.145 * settings.speedModifier;
waveone.difficulty += 0.09 * settings.speedModifier;
} else {
waveone.difficulty = 35;
}
@ -30,7 +30,7 @@ function waveGen(hex) {
this.computeDifficulty();
if ((this.dt - this.lastGen) * settings.creationSpeedModifier > this.nextGen) {
if (this.nextGen > 600) {
this.nextGen -= 14 * ((this.nextGen / 1300)) * settings.creationSpeedModifier;
this.nextGen -= 11 * ((this.nextGen / 1300)) * settings.creationSpeedModifier;
}
}
};
@ -67,7 +67,7 @@ function waveGen(hex) {
this.computeDifficulty = function() {
if (this.difficulty < 35) {
if (this.difficulty < 8) {
this.difficulty += (this.dt - this.last) / (2066667) * settings.speedModifier;
this.difficulty += (this.dt - this.last) / (30066667) * settings.speedModifier;
} else if (this.difficulty < 15) {
this.difficulty += (this.dt - this.last) / (43333333) * settings.speedModifier;
} else {