Skip to content

Commit e44ce76

Browse files
committed
Scene.Systems resize handler added.
1 parent cf01056 commit e44ce76

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/scene/Systems.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,21 @@ var Systems = new Class({
509509
this.events.emit('start', this);
510510
},
511511

512+
/**
513+
* Called automatically by the SceneManager if the Game resizes.
514+
* Dispatches an event you can respond to in your game code.
515+
*
516+
* @method Phaser.Scenes.Systems#resize
517+
* @since 3.2.0
518+
*
519+
* @param {number} width - The new width of the game.
520+
* @param {number} height - The new height of the game.
521+
*/
522+
resize: function (width, height)
523+
{
524+
this.events.emit('resize', width, height);
525+
},
526+
512527
/**
513528
* Shutdown this Scene and send a shutdown event to all of its systems.
514529
*

0 commit comments

Comments
 (0)