made game a bit slower at the start
This commit is contained in:
parent
12042c3a04
commit
2c261f5d87
1 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
function blockDestroyed() {
|
||||
if (waveone.nextGen > 1350) {
|
||||
waveone.nextGen -= 20 * settings.creationSpeedModifier;
|
||||
waveone.nextGen -= 19 * settings.creationSpeedModifier;
|
||||
} else if (waveone.nextGen > 700) {
|
||||
waveone.nextGen -= 13 * settings.creationSpeedModifier;
|
||||
} else {
|
||||
|
@ -8,7 +8,7 @@ function blockDestroyed() {
|
|||
}
|
||||
|
||||
if (waveone.difficulty < 35) {
|
||||
waveone.difficulty += 0.10 * settings.speedModifier;
|
||||
waveone.difficulty += 0.09 * settings.speedModifier;
|
||||
} else {
|
||||
waveone.difficulty = 35;
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ function blockDestroyed() {
|
|||
function waveGen(hex) {
|
||||
this.lastGen = 0;
|
||||
this.last = 0;
|
||||
this.nextGen = 2400;
|
||||
this.nextGen = 2700;
|
||||
this.start = 0;
|
||||
this.colors = colors;
|
||||
this.ct = 0;
|
||||
|
@ -67,9 +67,9 @@ function waveGen(hex) {
|
|||
this.computeDifficulty = function() {
|
||||
if (this.difficulty < 35) {
|
||||
if (this.difficulty < 8) {
|
||||
this.difficulty += (this.dt - this.last) / (3166667) * settings.speedModifier;
|
||||
this.difficulty += (this.dt - this.last) / (4166667) * settings.speedModifier;
|
||||
} else if (this.difficulty < 15) {
|
||||
this.difficulty += (this.dt - this.last) / (42333333) * settings.speedModifier;
|
||||
this.difficulty += (this.dt - this.last) / (52333333) * settings.speedModifier;
|
||||
} else {
|
||||
this.difficulty += (this.dt - this.last) / (90000000) * settings.speedModifier;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue