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

beta.r3js.org
-=yb4f310 2017-11-27 22:52:13 +01:00
parent 953c6f5393
commit b625cbd864
1 changed files with 19 additions and 19 deletions

View File

@ -115,13 +115,13 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
}
if (this.score > 10000) {
var dice = GameLib.Utils.GetRandomIntInclusive(1, 6);
var dice = GameLib.Utils.GetRandomIntInclusive(1, 10);
/**
* Max average spawn = 5.41
* @type {number}
*/
dice += 5.41;
dice += 6.41;
/**
* 53 is one more than average score, in total - should be against your odds to win.
@ -192,23 +192,23 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.level = Math.floor(this.enemiesSpawned / 10) + 1;
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;
// }
//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);