From 0d1bd68329e6042c5becf3b125022389b8adc365 Mon Sep 17 00:00:00 2001 From: Logan Engstrom Date: Tue, 26 Aug 2014 01:35:44 -0400 Subject: [PATCH] balanced game for mobile --- js_v8/initialization.js | 2 +- js_v8/wavegen.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/js_v8/initialization.js b/js_v8/initialization.js index ee4f438..132cf63 100644 --- a/js_v8/initialization.js +++ b/js_v8/initialization.js @@ -79,7 +79,7 @@ function initialize(a) { settings = { platform: "mobile", startDist: 227, - creationDt: 40, + creationDt: 60, baseScale: 1.4, scale: 1, prevScale: 1, diff --git a/js_v8/wavegen.js b/js_v8/wavegen.js index 215170d..5e452e0 100644 --- a/js_v8/wavegen.js +++ b/js_v8/wavegen.js @@ -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; } } };