diff --git a/osynga17uj.js b/osynga17uj.js index 8ef47c9..efc4825 100644 --- a/osynga17uj.js +++ b/osynga17uj.js @@ -1110,6 +1110,10 @@ if (GameLib.Utils.UndefinedOrNull(this.subscriptions)) { 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; + 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)