Update: CC - Entity Loaded - Moorcow (hv7vehw7se.js) 273 bytes modified
parent
a0a7a6fc91
commit
6028cb6a5c
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue