From c4447d70fde5e5d71cfb1657a8681ea5653092a5 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 12 Mar 2018 14:19:14 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 197 bytes modified --- 21g30t1e75.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index c964ead..e61c339 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -18,6 +18,11 @@ this.imageEnd = GameLib.EntityManager.Instance.findComponentById('swkla3wpp'); this.imageBodyPatty = GameLib.EntityManager.Instance.findComponentById('01r51k9ptr'); this.imagePatty = GameLib.EntityManager.Instance.findComponentById('4lf0fw24su'); +/** + * Other Objects (Scene) + */ +this.scene = GameLib.EntityManager.Instance.findComponentById('pllp034hsj'); + GameLib.CustomCode.prototype.createMaterial = function(image) { var diffuseMap = new GameLib.D3.Texture.Image( this.runtime.graphics, @@ -44,7 +49,7 @@ GameLib.CustomCode.prototype.createGameMesh = function(image) { } ) - + this.scene.addClone(mesh); }.bind(this) @@ -52,7 +57,8 @@ GameLib.CustomCode.prototype.createGameMesh = function(image) { * Create our objects */ this.meshHead = this.createGameMesh(this.imageEnd); -this.meshBodyPatty = this.createGameMesh(this.imagePatty); +this.meshPatty = this.createGameMesh(this.imagePatty); +this.meshBodyPatty = this.createGameMesh(this.imageBodyPatty); GameLib.Event.Subscribe( GameLib.Event.GAME_START,