From 350f146d217985faea90d2f6bbd088454a527e21 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 14 Jan 2018 15:19:31 +0100 Subject: [PATCH] Update: CustomCode - Bacon - Entity Loaded (osynga17uj.js) 112 bytes modified --- osynga17uj.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/osynga17uj.js b/osynga17uj.js index efc4825..33db59f 100644 --- a/osynga17uj.js +++ b/osynga17uj.js @@ -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)