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,6 +60,9 @@ this.raycaster = new GameLib.D3.Raycaster(this.graphics);
/**
* 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.entityLoaded = this;
@ -72,15 +75,19 @@ this.mouseDown.entityLoaded = this;
this.mouseMove = GameLib.EntityManager.Instance.findComponentById('6st4io7ceu');
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.PLAY_AUDIO,
{
name : 'Audio - Xmas'
}
);
}
);
//GameLib.Event.Emit(GameLib.Event.MOUSE_UP);
/**
* Plant all our trees - Below code gets generated automatically