Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 71 bytes modified
parent
b0b2c16a71
commit
e890269d19
|
@ -35,7 +35,8 @@ GameLib.CustomCode.prototype.createMaterial = function(image) {
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
|
||||||
GameLib.CustomCode.prototype.createGameMesh = function(image) {
|
GameLib.CustomCode.prototype.createGameMesh = function(image) {
|
||||||
return new GameLib.D3.Mesh(
|
|
||||||
|
var mesh = new GameLib.D3.Mesh(
|
||||||
this.runtime.graphics,
|
this.runtime.graphics,
|
||||||
{
|
{
|
||||||
geometry : this.geometryBody,
|
geometry : this.geometryBody,
|
||||||
|
@ -43,12 +44,15 @@ GameLib.CustomCode.prototype.createGameMesh = function(image) {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create our objects
|
* 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.Subscribe(
|
||||||
GameLib.Event.GAME_START,
|
GameLib.Event.GAME_START,
|
||||||
|
|
Loading…
Reference in New Issue