Skip to content

Commit 75d7fa1

Browse files
committed
Updated Project Template to use new setResizeCallback method.
1 parent c6493b5 commit 75d7fa1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • resources/Project Templates/Full Screen Mobile/src

resources/Project Templates/Full Screen Mobile/src/Boot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ BasicGame.Boot.prototype = {
5050
this.scale.pageAlignHorizontally = true;
5151
this.scale.pageAlignVertically = true;
5252
this.scale.forceOrientation(true, false);
53-
this.scale.hasResized.add(this.gameResized, this);
53+
this.scale.setResizeCallback(this.gameResized, this);
5454
this.scale.enterIncorrectOrientation.add(this.enterIncorrectOrientation, this);
5555
this.scale.leaveIncorrectOrientation.add(this.leaveIncorrectOrientation, this);
5656
this.scale.setScreenSize(true);
@@ -63,7 +63,7 @@ BasicGame.Boot.prototype = {
6363
gameResized: function (width, height) {
6464

6565
// This could be handy if you need to do any extra processing if the game resizes.
66-
// A resize could happen if for example swapping orientation on a device.
66+
// A resize could happen if for example swapping orientation on a device or resizing the browser window.
6767

6868
},
6969

0 commit comments

Comments
 (0)