html5 full screen

Hi!

How can I make my html5 game go full screen on mobiles / tablets?

Hide web browser and have only the game on screen.

I have searched the forum / site and couldn’t find something about it!

Try to set defaultMode = “fullscreen” in the build.settings file, something similar to

settings =

{

  orientation =

  {

    default = “portrait”,

    supported = { “portrait” }

  },

  window =

  {

    defaultMode = “fullscreen”,

  }

}

Hello!

I would like to hide the web browser and have only the game on screen.

Make the address bar and the other graphical elements of the web browser hidden.

You can use JavaScript to launch your game from a button on another web page, and pass parameters with that call to tell the browser to hide the general window elements. But this is a really, really, really old-skool mechanic that as far as I’m aware isn’t supported by modern browsers. Additionally it’ll cause just about all popup blockers to trigger.

https://www.w3schools.com/jsref/met_win_open.asp

Try to set defaultMode = “fullscreen” in the build.settings file, something similar to

settings =

{

  orientation =

  {

    default = “portrait”,

    supported = { “portrait” }

  },

  window =

  {

    defaultMode = “fullscreen”,

  }

}

Hello!

I would like to hide the web browser and have only the game on screen.

Make the address bar and the other graphical elements of the web browser hidden.

You can use JavaScript to launch your game from a button on another web page, and pass parameters with that call to tell the browser to hide the general window elements. But this is a really, really, really old-skool mechanic that as far as I’m aware isn’t supported by modern browsers. Additionally it’ll cause just about all popup blockers to trigger.

https://www.w3schools.com/jsref/met_win_open.asp