Update: CC - Before Render - Moorcow (qi81k80v08.js) 689 bytes modified
parent
6623a7a544
commit
6927d00500
|
@ -46,7 +46,7 @@ if (GameLib.Utils.UndefinedOrNull(this.loaded)) {
|
||||||
var enemyType = GameLib.Utils.GetRandomIntInclusive(1, 5);
|
var enemyType = GameLib.Utils.GetRandomIntInclusive(1, 5);
|
||||||
var meshType = GameLib.Utils.GetRandomIntInclusive(1, 4);
|
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();
|
var apiBox = new GameLib.D3.API.Mesh();
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ this.totalTime += data.delta;
|
||||||
this.spawnTime += data.delta;
|
this.spawnTime += data.delta;
|
||||||
|
|
||||||
if (this.spawnTime > this.nextSpawnTime) {
|
if (this.spawnTime > this.nextSpawnTime) {
|
||||||
this.nextSpawnTime = Math.floor((Math.random() * 1) + 1);
|
this.nextSpawnTime = this.getNextSpawnTime();
|
||||||
this.spawnTime = 0;
|
this.spawnTime = 0;
|
||||||
this.spawnEnemy();
|
this.spawnEnemy();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue