Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 71 bytes modified

beta.r3js.org
-=yb4f310 2018-03-12 14:16:02 +01:00
parent b0b2c16a71
commit e890269d19
1 changed files with 6 additions and 2 deletions

View File

@ -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,