Update: CC - Before Render - Moorcow (9l6o7974qx.js) 226 bytes modified
parent
297b329675
commit
ddbaec6808
|
@ -9,6 +9,11 @@ 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 = {
|
||||
|
|
Loading…
Reference in New Issue