Update: CC - Entity Loaded - Moorcow (hv7vehw7se.js) 273 bytes modified
parent
a0a7a6fc91
commit
6028cb6a5c
|
@ -70,19 +70,6 @@ this.mouseDown = GameLib.EntityManager.Instance.findComponentById('jtmr6gmp5p')
|
||||||
this.mouseMove = GameLib.EntityManager.Instance.findComponentById('lxigrx11oc');
|
this.mouseMove = GameLib.EntityManager.Instance.findComponentById('lxigrx11oc');
|
||||||
this.touchMove = GameLib.EntityManager.Instance.findComponentById('evwkow5289');
|
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
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue