Update: CC - Entity Loaded - Moorcow (xtihcyhagp.js) 108 bytes modified

beta.r3js.org
-=yb4f310 2017-11-19 11:43:05 +01:00
parent 3ade1580a3
commit b74abd699d
1 changed files with 22 additions and 15 deletions

View File

@ -60,27 +60,34 @@ this.raycaster = new GameLib.D3.Raycaster(this.graphics);
/**
* Tell all our custom code components that we loaded
*/
this.beforeRender = GameLib.EntityManager.Instance.findComponentById('autqzs1rvq');
this.beforeRender.entityLoaded = this;
GameLib.Event.Subscribe(
GameLib.Event.GAME_START,
function() {
this.beforeRender = GameLib.EntityManager.Instance.findComponentById('autqzs1rvq');
this.beforeRender.entityLoaded = this;
this.mouseUp = GameLib.EntityManager.Instance.findComponentById('monq9ryw7a');
this.mouseUp.entityLoaded = this;
this.mouseUp = GameLib.EntityManager.Instance.findComponentById('monq9ryw7a');
this.mouseUp.entityLoaded = this;
this.mouseDown = GameLib.EntityManager.Instance.findComponentById('d5o2axpc0m');
this.mouseDown.entityLoaded = this;
this.mouseDown = GameLib.EntityManager.Instance.findComponentById('d5o2axpc0m');
this.mouseDown.entityLoaded = this;
this.mouseMove = GameLib.EntityManager.Instance.findComponentById('6st4io7ceu');
this.mouseMove.entityLoaded = this;
this.mouseMove = GameLib.EntityManager.Instance.findComponentById('6st4io7ceu');
this.mouseMove.entityLoaded = this;
GameLib.Event.Emit(GameLib.Event.WINDOW_RESIZE, {width : window.innerWidth, height:window.innerHeight});
GameLib.Event.Emit(
GameLib.Event.PLAY_AUDIO,
{
name : 'Audio - Xmas'
}
);
}
);
//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.PLAY_AUDIO,
{
name : 'Audio - Xmas'
}
);
/**
* Plant all our trees - Below code gets generated automatically