made game time based, made game faster
This commit is contained in:
parent
8350bb622c
commit
729245fdd0
2 changed files with 3 additions and 4 deletions
|
@ -37,7 +37,6 @@ function descaleBlock(b) {
|
|||
}
|
||||
|
||||
function writeHighScores() {
|
||||
debugger;
|
||||
highscores.sort(
|
||||
function(a,b){
|
||||
a = parseInt(a, 10);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function blockDestroyed() {
|
||||
if (waveone.nextGen > 1350) {
|
||||
waveone.nextGen -= 30 * settings.creationSpeedModifier;
|
||||
waveone.nextGen -= 37 * settings.creationSpeedModifier;
|
||||
} else if (waveone.nextGen > 600) {
|
||||
waveone.nextGen -= 15 * settings.creationSpeedModifier;
|
||||
} else {
|
||||
|
@ -8,7 +8,7 @@ function blockDestroyed() {
|
|||
}
|
||||
|
||||
if (waveone.difficulty < 35) {
|
||||
waveone.difficulty += 0.13 * settings.speedModifier;
|
||||
waveone.difficulty += 0.17 * settings.speedModifier;
|
||||
} else {
|
||||
waveone.difficulty = 35;
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ function waveGen(hex) {
|
|||
this.dt = 0;
|
||||
this.update = function() {
|
||||
this.currentFunction();
|
||||
this.dt = MainHex.dt * 17;
|
||||
this.dt = MainHex.ct * 16.6666667;
|
||||
this.computeDifficulty();
|
||||
if ((this.dt - this.lastGen) * settings.creationSpeedModifier > this.nextGen) {
|
||||
if (this.nextGen > 600) {
|
||||
|
|
Loading…
Reference in a new issue