From ddbaec680824b8a08edcef91d6eca11467649c91 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 7 Nov 2017 00:13:34 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (9l6o7974qx.js) 226 bytes modified --- 9l6o7974qx.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/9l6o7974qx.js b/9l6o7974qx.js index 992bb05..3f9b146 100644 --- a/9l6o7974qx.js +++ b/9l6o7974qx.js @@ -8,7 +8,12 @@ if ( */ this.totalTime = 0; this.spawnTime = 0; + + var cow = GameLib.EntityManager.Instance.findComponentById('3upawmhh8j'); + cow.instance.visible = false; + + this.enemies = []; GameLib.Event.Emit( @@ -40,18 +45,20 @@ if ( apiBox.materials = [this.boxMaterial]; - var cow = GameLib.EntityManager.Instance.findComponentById('3upawmhh8j'); - - cow.instance.visible = false; - var box = cow.clone(); box.instance.visible = true; var velocity = null; + var rotX = Math.floor((Math.random() * 10) + 1) * 0.01; + var rotY = Math.floor((Math.random() * 10) + 1) * 0.01; + var rotZ = Math.floor((Math.random() * 10) + 1) * 0.01; + var position = {x : 0, y: y, z :0}; + var rotation = {x : rotX, y: rotY, z: rotZ}; + var speed = 0.5; var enemy = {