Update: CC - Entity Loaded - Moorcow (hv7vehw7se.js) 273 bytes modified

beta.r3js.org
-=yb4f310 2018-01-14 14:06:55 +01:00
parent a0a7a6fc91
commit 6028cb6a5c
1 changed files with 2 additions and 15 deletions

View File

@ -70,22 +70,9 @@ this.mouseDown = GameLib.EntityManager.Instance.findComponentById('jtmr6gmp5p')
this.mouseMove = GameLib.EntityManager.Instance.findComponentById('lxigrx11oc');
this.touchMove = GameLib.EntityManager.Instance.findComponentById('evwkow5289');
GameLib.Event.Subscribe(
GameLib.Event.WINDOW_RESIZE,
function(data) {
var aspect = (data.width / data.height);
this.camera.aspect = aspect;
this.camera.updateInstance('aspect');
this.renderer.setSize(
data.width,
data.height
);
}.bind(this)
);
/**
* Tell all our custom code components that we loaded
*/
* Tell all our custom code components that we loaded
*/
GameLib.Event.Subscribe(
GameLib.Event.CUSTOM_GAME_START,
function() {