Update: CC - Entity Loaded - Moorcow (o73bkh2tlq.js) 114 bytes modified
parent
e090320488
commit
42ec826648
|
@ -33,12 +33,13 @@ this.mouseMove.entityLoaded = this;
|
||||||
/**
|
/**
|
||||||
* Create references to all our 'in game' objects
|
* Create references to all our 'in game' objects
|
||||||
*/
|
*/
|
||||||
this.bull = GameLib.EntityManager.Instance.findComponentById('y1op9hp8dz');
|
this.bull = GameLib.EntityManager.Instance.findComponentById('y1op9hp8dz');
|
||||||
this.star = GameLib.EntityManager.Instance.findComponentById('tmut3carec');
|
this.star = GameLib.EntityManager.Instance.findComponentById('tmut3carec');
|
||||||
this.burger = GameLib.EntityManager.Instance.findComponentById('j88zs01szc');
|
this.burger = GameLib.EntityManager.Instance.findComponentById('j88zs01szc');
|
||||||
this.parcel = GameLib.EntityManager.Instance.findComponentById('l91pfxkwml');
|
this.parcel = GameLib.EntityManager.Instance.findComponentById('l91pfxkwml');
|
||||||
|
|
||||||
this.camera = GameLib.EntityManager.Instance.findComponentById('k9ain64rlp');
|
this.camera = GameLib.EntityManager.Instance.findComponentById('k9ain64rlp');
|
||||||
|
this.scene = GameLib.EntityManager.Instance.findComponentById('q1f5n01iqk');
|
||||||
|
|
||||||
GameLib.Event.Emit(
|
GameLib.Event.Emit(
|
||||||
GameLib.Event.GET_GRAPHICS_IMPLEMENTATION,
|
GameLib.Event.GET_GRAPHICS_IMPLEMENTATION,
|
||||||
|
@ -48,8 +49,8 @@ GameLib.Event.Emit(
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
);
|
);
|
||||||
|
|
||||||
this.mouse = new GameLib.Mouse(this.graphics);
|
this.mouse = new GameLib.Mouse(this.graphics);
|
||||||
this.raycaster = new GameLib.D3.Raycaster(this.graphics);
|
this.raycaster = new GameLib.D3.Raycaster(this.graphics);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Link some objects for MouseMove component
|
* Link some objects for MouseMove component
|
||||||
|
@ -57,6 +58,7 @@ this.raycaster = new GameLib.D3.Raycaster(this.graphics);
|
||||||
this.mouseMove.mouse = this.mouse;
|
this.mouseMove.mouse = this.mouse;
|
||||||
this.mouseMove.raycaster = this.raycaster;
|
this.mouseMove.raycaster = this.raycaster;
|
||||||
this.mouseMove.camera = this.camera;
|
this.mouseMove.camera = this.camera;
|
||||||
|
this.mouseMove.scene = this.scene;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plant all our trees
|
* Plant all our trees
|
||||||
|
|
Loading…
Reference in New Issue