diff --git a/osynga17uj.js b/osynga17uj.js index bc5c999..f38bc79 100644 --- a/osynga17uj.js +++ b/osynga17uj.js @@ -1114,23 +1114,6 @@ if (GameLib.Utils.UndefinedOrNull(this.subscriptions)) { this.animationObjects = []; - GameLib.Event.Subscribe( - GameLib.Event.WINDOW_RESIZE, - function (data) { - 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) - ) - - GameLib.Event.Emit( - GameLib.Event.WINDOW_RESIZE, - { - width: window.innerWidth, - height: window.innerHeight - } - ); - this.score = 0; this.level = 1; this.rows = 0;