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

beta.r3js.org
-=yb4f310 2017-11-27 20:45:35 +01:00
parent 4a4e196c06
commit 29a166c5da
1 changed files with 17 additions and 43 deletions

View File

@ -1,3 +1,4 @@
if (!this.entityLoaded) {
return;
}
@ -84,50 +85,24 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.kanisterTime = 0;
this.kanisterLife = 16.344;
this.kanisterLeakTime = 0.1;
this.kanisterSpawnScore = 50;
this.kanisterSpawnScore = 1000;
this.setNextKanisterSpawnScore = function () {
this.kanisterSpawnScore = this.score + 100;
if (this.score > 200) {
this.kanisterSpawnScore = this.score + 200;
}
if (this.score > 500) {
this.kanisterSpawnScore = this.score + 300;
}
if (this.score > 800) {
this.kanisterSpawnScore = this.score + 400;
}
if (this.score > 1100) {
this.kanisterSpawnScore = this.score + 500;
}
if (this.score > 1400) {
this.kanisterSpawnScore = this.score + 600;
}
if (this.score > 1800) {
this.kanisterSpawnScore = this.score + 700;
}
if (this.score > 2500) {
this.kanisterSpawnScore = this.score + 800;
}
if (this.score > 3200) {
this.kanisterSpawnScore = this.score + 900;
}
if (this.score > 4000) {
this.kanisterSpawnScore = this.score + 1000;
}
if (this.score > 5000) {
this.kanisterSpawnScore = this.score + 1100;
if (this.score > 10000) {
this.kanisterSpawnScore = 15000;
} else if (this.score > 7500) {
this.kanisterSpawnScore = 10000;
} else if (this.score > 5000) {
this.kanisterSpawnScore = 7500;
} else if (this.score > 2500) {
this.kanisterSpawnScore = 5000;
} else if (this.score > 1500) {
this.kanisterSpawnScore = 2500;
} else if (this.score > 1000) {
this.kanisterSpawnScore = 1500;
} else {
this.kanisterSpawnScore = 500;
}
console.log('next kanister spawn score: ' + this.kanisterSpawnScore);
@ -943,5 +918,4 @@ if (this.score > this.kanisterSpawnScore) {
this.spawnEnemy(true);
}
return null;
//# sourceURL=beforeRender.js
return null;//# sourceURL=beforeRender.js