Update: CustomCode - Bacon - Entity Loaded (osynga17uj.js) 12 bytes modified
parent
d25c29d9f4
commit
d8d0fcd3ba
|
@ -1107,7 +1107,7 @@ if (GameLib.Utils.UndefinedOrNull(this.subscriptions)) {
|
||||||
this.subscriptions = [];
|
this.subscriptions = [];
|
||||||
|
|
||||||
GameLib.Event.Subscribe(
|
GameLib.Event.Subscribe(
|
||||||
GameLib.Event.WINDOW_RESIZE,
|
GameLib.Event.CUSTOM_CODE_WINDOW_RESIZE,
|
||||||
function (data) {
|
function (data) {
|
||||||
var aspect = data.width / data.height;
|
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.offsetX = -((this.camera.maxX - this.camera.minX) / 2) + (GameLib.CustomCode.TETRIS_GRID_WIDTH / 2) - 0.5 - (0.5 * aspect);
|
||||||
|
|
Loading…
Reference in New Issue