Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Change screen size on browser resized?


Recommended Posts

I'm using this method to make the game fit the screen on the create() method:

game.stage.ScaleMode = Phaser.StageScaleMode.EXACT_FIT;
But how can I make the screen resize when the browser resizes? 
I can make it work by putting this code on the update() method but is there a more efficient way to do this than making that code fire every frame?
Link to comment
Share on other sites


  • Recently Browsing   0 members

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