Jump to content

Setting full screen in Phaser


Recommended Posts

Hi!, I'd like to ask why setting full screen in Phaser can only be called using the input from the user 

game.input.onDown.add(gofull, this);function gofull(){	Phaser.StageScaleMode.EXACT_FIT = 0;	game.stage.scale.startFullScreen();	alert('full screen');}

When calling the function gofull() in the create function or update function, the game doesn't go full. Thanks in advance!

Link to comment
Share on other sites

  • 2 weeks later...

  • Recently Browsing   0 members

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