Skip to content

Commit fc457f5

Browse files
committed
Added missing docs.
1 parent 4f88ec0 commit fc457f5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/core/World.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ Phaser.World.prototype.setBounds = function (x, y, width, height) {
103103

104104
};
105105

106+
/**
107+
* Updates the size of this world. Note that this doesn't modify the world x/y coordinates, just the width and height.
108+
*
109+
* @method Phaser.World#resize
110+
* @param {number} width - New width of the game world in pixels.
111+
* @param {number} height - New height of the game world in pixels.
112+
*/
106113
Phaser.World.prototype.resize = function (width, height) {
107114

108115
// Don't ever scale the World bounds lower than the original requested dimensions if it's a defined world size

0 commit comments

Comments
 (0)