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

Setting full screen in Phaser


playh5
 Share

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...
 Share

  • Recently Browsing   0 members

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