Update: CC - Before Render - Moorcow (qemp4een6t.js) 61 bytes modified
parent
953c6f5393
commit
b625cbd864
|
@ -115,13 +115,13 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.score > 10000) {
|
if (this.score > 10000) {
|
||||||
var dice = GameLib.Utils.GetRandomIntInclusive(1, 6);
|
var dice = GameLib.Utils.GetRandomIntInclusive(1, 10);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Max average spawn = 5.41
|
* Max average spawn = 5.41
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
dice += 5.41;
|
dice += 6.41;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 53 is one more than average score, in total - should be against your odds to win.
|
* 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.level = Math.floor(this.enemiesSpawned / 10) + 1;
|
||||||
|
|
||||||
this.enemySpawnInterval = Math.pow(this.level, 2) - 3 * this.level + 2;
|
//this.enemySpawnInterval = Math.pow(this.level, 2) - 3 * this.level + 2;
|
||||||
//
|
|
||||||
// if (this.level === 1) {
|
if (this.level === 1) {
|
||||||
// this.enemySpawnInterval = 4;
|
this.enemySpawnInterval = 4;
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// if (this.level === 2) {
|
if (this.level === 2) {
|
||||||
// this.enemySpawnInterval = 3;
|
this.enemySpawnInterval = 3;
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// if (this.level === 3) {
|
if (this.level === 3) {
|
||||||
// this.enemySpawnInterval = 2;
|
this.enemySpawnInterval = 2;
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// if (this.level > 3) {
|
if (this.level > 3) {
|
||||||
// this.enemySpawnInterval = 1.5;
|
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