balanced game for mobile

This commit is contained in:
Logan Engstrom 2014-08-26 01:35:44 -04:00
parent 1483e4f8d5
commit 0d1bd68329
2 changed files with 7 additions and 7 deletions

View file

@ -79,7 +79,7 @@ function initialize(a) {
settings = {
platform: "mobile",
startDist: 227,
creationDt: 40,
creationDt: 60,
baseScale: 1.4,
scale: 1,
prevScale: 1,

View file

@ -1,14 +1,14 @@
function blockDestroyed() {
if (waveone.nextGen > 1350) {
waveone.nextGen -= 19 * settings.creationSpeedModifier;
} else if (waveone.nextGen > 600) {
waveone.nextGen -= 20 * settings.creationSpeedModifier;
} else if (waveone.nextGen > 700) {
waveone.nextGen -= 9 * settings.creationSpeedModifier;
} else {
waveone.nextGen = 600;
}
if (waveone.difficulty < 35) {
waveone.difficulty += 0.09 * settings.speedModifier;
waveone.difficulty += 0.11 * 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 -= 11 * ((this.nextGen / 1300)) * settings.creationSpeedModifier;
this.nextGen -= 10 * ((this.nextGen / 1300)) * settings.creationSpeedModifier;
}
}
};
@ -67,11 +67,11 @@ function waveGen(hex) {
this.computeDifficulty = function() {
if (this.difficulty < 35) {
if (this.difficulty < 8) {
this.difficulty += (this.dt - this.last) / (30066667) * settings.speedModifier;
this.difficulty += (this.dt - this.last) / (3666667) * settings.speedModifier;
} else if (this.difficulty < 15) {
this.difficulty += (this.dt - this.last) / (43333333) * settings.speedModifier;
} else {
this.difficulty += (this.dt - this.last) / (90000000) * settings.speedModifier;
this.difficulty += (this.dt - this.last) / (130000000) * settings.speedModifier;
}
}
};