Update: CC - Before Render - Moorcow (qemp4een6t.js) 140 bytes modified

beta.r3js.org
-=yb4f310 2017-11-27 22:41:54 +01:00
parent ea4f34d6e4
commit 953c6f5393
1 changed files with 18 additions and 15 deletions

View File

@ -1,4 +1,5 @@
if (!this.entityLoaded) {
return;
}
@ -191,21 +192,23 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.level = Math.floor(this.enemiesSpawned / 10) + 1;
if (this.level === 1) {
this.enemySpawnInterval = 4;
}
if (this.level === 2) {
this.enemySpawnInterval = 3;
}
if (this.level === 3) {
this.enemySpawnInterval = 2;
}
if (this.level > 3) {
this.enemySpawnInterval = 1.5;
}
this.enemySpawnInterval = Math.pow(this.level, 2) - 3 * this.level + 2;
//
// if (this.level === 1) {
// this.enemySpawnInterval = 4;
// }
//
// if (this.level === 2) {
// this.enemySpawnInterval = 3;
// }
//
// if (this.level === 3) {
// this.enemySpawnInterval = 2;
// }
//
// if (this.level > 3) {
// this.enemySpawnInterval = 1.5;
// }
console.log('level : ' + this.level + ', spawn interval : ' + this.enemySpawnInterval);