From a2eddc4096c05774c4de5a07dc23141fd0d3e031 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 7 Nov 2017 00:06:03 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (9l6o7974qx.js) 4 bytes modified --- 9l6o7974qx.js | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/9l6o7974qx.js b/9l6o7974qx.js index c4c25a7..9303694 100644 --- a/9l6o7974qx.js +++ b/9l6o7974qx.js @@ -22,7 +22,7 @@ if ( this.getNextSpawnTime = function() { return GameLib.Utils.GetRandomIntInclusive( 1, - 2 + 10 ); } @@ -34,15 +34,13 @@ if ( var enemyType = Math.floor((Math.random() * 5) + 1); - var y = Math.floor((Math.random() * 40) + 2); + var y = Math.floor((Math.random() * 10) + 2); var apiBox = new GameLib.D3.API.Mesh(); apiBox.materials = [this.boxMaterial]; var box = GameLib.EntityManager.Instance.findComponentById('3upawmhh8j').clone(); - - var velocity = null; @@ -53,30 +51,30 @@ if ( }; if (enemyType === 1) { - position.x = -500; + position.x = -100; velocity = {x:1,y:0,z:0}; } if (enemyType === 2) { - position.x = 500; + position.x = 100; velocity = {x:-1,y:0,z:0}; } if (enemyType === 3) { - position.x = -500; - position.z = -500; + position.x = -100; + position.z = -100; velocity = {x:1,y:0,z:1}; } if (enemyType === 4) { - position.x = 500; - position.z = -500; + position.x = 100; + position.z = -100; velocity = {x:-1,y:0,z:1}; } if (enemyType === 5) { position.x = 0; - position.z = -500; + position.z = -100; velocity = {x:0,y:0,z:1}; } @@ -88,7 +86,7 @@ if ( enemy.velocity = velocity; enemy.lifeTime = 0; - enemy.life = 50; + enemy.life = 5; this.enemies.push(enemy); }