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