Jump to content

Resize on Window Resize Phaser 2


Chubby
 Share

Recommended Posts

Hello.

 

I'm using the following code to make my game responsive:

this.game.scaleMode = Phaser.ScaleManager.SHOW_ALL; this.game.scale.setShowAll();this.game.scale.pageAlignHorizontally = true;this.game.scale.pageAlignVertically = true;this.game.scale.refresh();

But it only change the size if I refresh the page...

Is it possible to change when window resize? I saw that in early versions (for example 1.1.3) it resized when the window resized..

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...