Update: CC - Before Render - Moorcow (qi81k80v08.js) 689 bytes modified

beta.r3js.org
-=yb4f310 2017-11-11 08:52:10 +01:00
parent 6623a7a544
commit 6927d00500
1 changed files with 133 additions and 133 deletions

View File

@ -46,7 +46,7 @@ if (GameLib.Utils.UndefinedOrNull(this.loaded)) {
var enemyType = GameLib.Utils.GetRandomIntInclusive(1, 5);
var meshType = GameLib.Utils.GetRandomIntInclusive(1, 4);
var y = GameLib.Utils.GetRandomIntInclusive(2, 10));
var y = GameLib.Utils.GetRandomIntInclusive(2, 10);
var apiBox = new GameLib.D3.API.Mesh();
@ -135,7 +135,7 @@ this.totalTime += data.delta;
this.spawnTime += data.delta;
if (this.spawnTime > this.nextSpawnTime) {
this.nextSpawnTime = Math.floor((Math.random() * 1) + 1);
this.nextSpawnTime = this.getNextSpawnTime();
this.spawnTime = 0;
this.spawnEnemy();
}