From 3669778baa9f70a428ca17c67476b03fbaf635c6 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 7 Nov 2017 00:07:48 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (9l6o7974qx.js) 51 bytes modified --- 9l6o7974qx.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/9l6o7974qx.js b/9l6o7974qx.js index 9303694..af198ac 100644 --- a/9l6o7974qx.js +++ b/9l6o7974qx.js @@ -46,36 +46,38 @@ if ( var position = {x : 0, y: y, z :0}; + var speed = 0.2; + var enemy = { mesh : box }; if (enemyType === 1) { position.x = -100; - velocity = {x:1,y:0,z:0}; + velocity = {x:speed,y:0,z:0}; } if (enemyType === 2) { position.x = 100; - velocity = {x:-1,y:0,z:0}; + velocity = {x:-speed,y:0,z:0}; } if (enemyType === 3) { position.x = -100; position.z = -100; - velocity = {x:1,y:0,z:1}; + velocity = {x:speed,y:0,z:speed}; } if (enemyType === 4) { position.x = 100; position.z = -100; - velocity = {x:-1,y:0,z:1}; + velocity = {x:-speed,y:0,z:speed}; } if (enemyType === 5) { position.x = 0; position.z = -100; - velocity = {x:0,y:0,z:1}; + velocity = {x:0,y:0,z:speed}; } @@ -86,7 +88,7 @@ if ( enemy.velocity = velocity; enemy.lifeTime = 0; - enemy.life = 5; + enemy.life = 15; this.enemies.push(enemy); }