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

beta.r3js.org
-=yb4f310 2017-11-27 22:08:44 +01:00
parent 110c5eb555
commit ea4f34d6e4
1 changed files with 14 additions and 4 deletions

View File

@ -115,7 +115,17 @@ 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, 6);
this.kanisterSpawnScore = this.score + (dice * 50 * this.level);
/**
* Max average spawn = 5.41
* @type {number}
*/
dice += 5.41;
/**
* 53 is one more than average score, in total - should be against your odds to win.
*/
this.kanisterSpawnScore = this.score + (dice * 53 * this.level);
} }
console.log('next kanister spawn score: ' + this.kanisterSpawnScore); console.log('next kanister spawn score: ' + this.kanisterSpawnScore);
@ -246,15 +256,15 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
if (meshTypeIndex === 1) { if (meshTypeIndex === 1) {
meshType = 'bull'; meshType = 'bull';
score = 10; score = 10;
speed = 0.3; speed = 0.2;
} else if (meshTypeIndex === 2) { } else if (meshTypeIndex === 2) {
meshType = 'star'; meshType = 'star';
score = 20; score = 20;
speed = 0.4; speed = 0.3;
} else if (meshTypeIndex === 3) { } else if (meshTypeIndex === 3) {
meshType = 'burger'; meshType = 'burger';
score = 50; score = 50;
speed = 0.45; speed = 0.4;
} else if (meshTypeIndex === 4) { } else if (meshTypeIndex === 4) {
meshType = 'parcel'; meshType = 'parcel';
score = 75; score = 75;