From e890269d193dd601aa05ed78c18add3efce35f3b Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 12 Mar 2018 14:16:02 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 71 bytes modified --- 21g30t1e75.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index 9726ad9..c964ead 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -35,7 +35,8 @@ GameLib.CustomCode.prototype.createMaterial = function(image) { }.bind(this); GameLib.CustomCode.prototype.createGameMesh = function(image) { - return new GameLib.D3.Mesh( + + var mesh = new GameLib.D3.Mesh( this.runtime.graphics, { geometry : this.geometryBody, @@ -43,12 +44,15 @@ GameLib.CustomCode.prototype.createGameMesh = function(image) { } ) + + }.bind(this) /** * Create our objects */ -this.meshHead = this.createGameMesh(this.imageEnd); +this.meshHead = this.createGameMesh(this.imageEnd); +this.meshBodyPatty = this.createGameMesh(this.imagePatty); GameLib.Event.Subscribe( GameLib.Event.GAME_START,