From 1b6c22e9984a0227d751346305a9f9000ae97d32 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 14 Jan 2018 14:49:00 +0100 Subject: [PATCH] Update: CustomCode - Bacon - Entity Loaded (osynga17uj.js) 488 bytes modified --- osynga17uj.js | 17 ----------------- 1 file changed, 17 deletions(-) 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;