Update: CC - Before Render - Moorcow (qemp4een6t.js) 140 bytes modified
parent
ea4f34d6e4
commit
953c6f5393
|
@ -1,4 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
if (!this.entityLoaded) {
|
if (!this.entityLoaded) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -191,21 +192,23 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
|
|
||||||
this.level = Math.floor(this.enemiesSpawned / 10) + 1;
|
this.level = Math.floor(this.enemiesSpawned / 10) + 1;
|
||||||
|
|
||||||
if (this.level === 1) {
|
this.enemySpawnInterval = Math.pow(this.level, 2) - 3 * this.level + 2;
|
||||||
this.enemySpawnInterval = 4;
|
//
|
||||||
}
|
// if (this.level === 1) {
|
||||||
|
// this.enemySpawnInterval = 4;
|
||||||
if (this.level === 2) {
|
// }
|
||||||
this.enemySpawnInterval = 3;
|
//
|
||||||
}
|
// if (this.level === 2) {
|
||||||
|
// this.enemySpawnInterval = 3;
|
||||||
if (this.level === 3) {
|
// }
|
||||||
this.enemySpawnInterval = 2;
|
//
|
||||||
}
|
// if (this.level === 3) {
|
||||||
|
// this.enemySpawnInterval = 2;
|
||||||
if (this.level > 3) {
|
// }
|
||||||
this.enemySpawnInterval = 1.5;
|
//
|
||||||
}
|
// if (this.level > 3) {
|
||||||
|
// this.enemySpawnInterval = 1.5;
|
||||||
|
// }
|
||||||
|
|
||||||
console.log('level : ' + this.level + ', spawn interval : ' + this.enemySpawnInterval);
|
console.log('level : ' + this.level + ', spawn interval : ' + this.enemySpawnInterval);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue