Update: CustomCode - Bacon - Entity Loaded (osynga17uj.js) 112 bytes modified

beta.r3js.org
-=yb4f310 2018-01-14 15:19:31 +01:00
parent abe116b6df
commit 350f146d21
1 changed files with 1 additions and 5 deletions

View File

@ -1109,11 +1109,7 @@ if (GameLib.Utils.UndefinedOrNull(this.subscriptions)) {
GameLib.Event.Subscribe(
GameLib.Event.CUSTOM_CODE_WINDOW_RESIZE,
function (data) {
var aspect = data.width / data.height;
this.camera.minX = aspect * this.camera.minY;
this.camera.maxX = aspect * this.camera.maxY;
var aspect = data.width / data.height;
this.camera.offsetX = -((this.camera.maxX - this.camera.minX) / 2) + (GameLib.CustomCode.TETRIS_GRID_WIDTH / 2) - 0.5 - (0.5 * aspect);
this.camera.updateInstance('offsetX');
}.bind(this)