Update: CustomCode - Bacon - Entity Loaded (osynga17uj.js) 14 bytes modified
parent
350f146d21
commit
742b8abac3
|
@ -1109,8 +1109,8 @@ if (GameLib.Utils.UndefinedOrNull(this.subscriptions)) {
|
||||||
GameLib.Event.Subscribe(
|
GameLib.Event.Subscribe(
|
||||||
GameLib.Event.CUSTOM_CODE_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 * this.camera.aspect);
|
||||||
this.camera.updateInstance('offsetX');
|
this.camera.updateInstance('offsetX');
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue