Update: CustomCode - Bacon - Entity Loaded (osynga17uj.js) 488 bytes modified
parent
6028cb6a5c
commit
1b6c22e998
|
@ -1114,23 +1114,6 @@ if (GameLib.Utils.UndefinedOrNull(this.subscriptions)) {
|
||||||
|
|
||||||
this.animationObjects = [];
|
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.score = 0;
|
||||||
this.level = 1;
|
this.level = 1;
|
||||||
this.rows = 0;
|
this.rows = 0;
|
||||||
|
|
Loading…
Reference in New Issue