Update: CC - Entity Loaded - Moorcow (xtihcyhagp.js) 108 bytes modified
parent
3ade1580a3
commit
b74abd699d
|
@ -60,6 +60,9 @@ this.raycaster = new GameLib.D3.Raycaster(this.graphics);
|
||||||
/**
|
/**
|
||||||
* Tell all our custom code components that we loaded
|
* Tell all our custom code components that we loaded
|
||||||
*/
|
*/
|
||||||
|
GameLib.Event.Subscribe(
|
||||||
|
GameLib.Event.GAME_START,
|
||||||
|
function() {
|
||||||
this.beforeRender = GameLib.EntityManager.Instance.findComponentById('autqzs1rvq');
|
this.beforeRender = GameLib.EntityManager.Instance.findComponentById('autqzs1rvq');
|
||||||
this.beforeRender.entityLoaded = this;
|
this.beforeRender.entityLoaded = this;
|
||||||
|
|
||||||
|
@ -72,15 +75,19 @@ this.mouseDown.entityLoaded = this;
|
||||||
this.mouseMove = GameLib.EntityManager.Instance.findComponentById('6st4io7ceu');
|
this.mouseMove = GameLib.EntityManager.Instance.findComponentById('6st4io7ceu');
|
||||||
this.mouseMove.entityLoaded = this;
|
this.mouseMove.entityLoaded = this;
|
||||||
|
|
||||||
//GameLib.Event.Emit(GameLib.Event.MOUSE_UP);
|
|
||||||
|
|
||||||
GameLib.Event.Emit(GameLib.Event.WINDOW_RESIZE, {width : window.innerWidth, height:window.innerHeight});
|
GameLib.Event.Emit(GameLib.Event.WINDOW_RESIZE, {width : window.innerWidth, height:window.innerHeight});
|
||||||
|
|
||||||
GameLib.Event.Emit(
|
GameLib.Event.Emit(
|
||||||
GameLib.Event.PLAY_AUDIO,
|
GameLib.Event.PLAY_AUDIO,
|
||||||
{
|
{
|
||||||
name : 'Audio - Xmas'
|
name : 'Audio - Xmas'
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
//GameLib.Event.Emit(GameLib.Event.MOUSE_UP);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plant all our trees - Below code gets generated automatically
|
* Plant all our trees - Below code gets generated automatically
|
||||||
|
|
Loading…
Reference in New Issue