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

beta.r3js.org
-=yb4f310 2018-01-14 14:49:00 +01:00
parent 6028cb6a5c
commit 1b6c22e998
1 changed files with 0 additions and 17 deletions

View File

@ -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;