diff --git a/9l6o7974qx.js b/9l6o7974qx.js index 3f9b146..a971029 100644 --- a/9l6o7974qx.js +++ b/9l6o7974qx.js @@ -10,10 +10,11 @@ if ( this.spawnTime = 0; var cow = GameLib.EntityManager.Instance.findComponentById('3upawmhh8j'); + var burger = GameLib.EntityManager.Instance.findComponentById('psy2g7qsfx'); cow.instance.visible = false; + burger.instance.visible = false; - this.enemies = []; GameLib.Event.Emit( @@ -38,14 +39,20 @@ if ( this.spawnEnemy = function() { var enemyType = Math.floor((Math.random() * 5) + 1); - + var meshType = Math.floor((Math.random() * 2) + 1); + var y = Math.floor((Math.random() * 10) + 2); var apiBox = new GameLib.D3.API.Mesh(); apiBox.materials = [this.boxMaterial]; - var box = cow.clone(); + var box = null; + if (meshType === 1) { + box = cow.clone(); + } else { + box = burger.clone(); + } box.instance.visible = true;