File tree Expand file tree Collapse file tree
resources/Project Templates/Full Screen Mobile/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments