mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Added CameraManager.resize method.
This commit is contained in:
parent
e6059f65cd
commit
31f331de98
1 changed files with 17 additions and 0 deletions
|
@ -431,6 +431,23 @@ var CameraManager = new Class({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Resizes all cameras to the given dimensions.
|
||||||
|
*
|
||||||
|
* @method Phaser.Cameras.Scene2D.CameraManager#resize
|
||||||
|
* @since 3.2.0
|
||||||
|
*
|
||||||
|
* @param {number} width - The new width of the camera.
|
||||||
|
* @param {number} height - The new height of the camera.
|
||||||
|
*/
|
||||||
|
resize: function (width, height)
|
||||||
|
{
|
||||||
|
for (var i = 0, l = this.cameras.length; i < l; ++i)
|
||||||
|
{
|
||||||
|
this.cameras[i].setSize(width, height);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* [description]
|
* [description]
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue