Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 197 bytes modified
parent
e890269d19
commit
c4447d70fd
|
@ -18,6 +18,11 @@ this.imageEnd = GameLib.EntityManager.Instance.findComponentById('swkla3wpp');
|
||||||
this.imageBodyPatty = GameLib.EntityManager.Instance.findComponentById('01r51k9ptr');
|
this.imageBodyPatty = GameLib.EntityManager.Instance.findComponentById('01r51k9ptr');
|
||||||
this.imagePatty = GameLib.EntityManager.Instance.findComponentById('4lf0fw24su');
|
this.imagePatty = GameLib.EntityManager.Instance.findComponentById('4lf0fw24su');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Other Objects (Scene)
|
||||||
|
*/
|
||||||
|
this.scene = GameLib.EntityManager.Instance.findComponentById('pllp034hsj');
|
||||||
|
|
||||||
GameLib.CustomCode.prototype.createMaterial = function(image) {
|
GameLib.CustomCode.prototype.createMaterial = function(image) {
|
||||||
var diffuseMap = new GameLib.D3.Texture.Image(
|
var diffuseMap = new GameLib.D3.Texture.Image(
|
||||||
this.runtime.graphics,
|
this.runtime.graphics,
|
||||||
|
@ -44,7 +49,7 @@ GameLib.CustomCode.prototype.createGameMesh = function(image) {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
this.scene.addClone(mesh);
|
||||||
|
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
|
|
||||||
|
@ -52,7 +57,8 @@ GameLib.CustomCode.prototype.createGameMesh = function(image) {
|
||||||
* Create our objects
|
* Create our objects
|
||||||
*/
|
*/
|
||||||
this.meshHead = this.createGameMesh(this.imageEnd);
|
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.Subscribe(
|
||||||
GameLib.Event.GAME_START,
|
GameLib.Event.GAME_START,
|
||||||
|
|
Loading…
Reference in New Issue