Update: CC - Before Render - Moorcow (9l6o7974qx.js) 226 bytes modified

beta.r3js.org
-=yb4f310 2017-11-07 00:13:34 +01:00
parent 297b329675
commit ddbaec6808
1 changed files with 11 additions and 4 deletions

View File

@ -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 = {