Can Phaser3 do fullscreen?

Recommended Posts

Maybe i am wrong but i was searching the same and i think it has been removed in Phaser 3 because the classic FullScreen API do the same job?

In the current Phaser 3 doc we can find informations about fullscreen in  "Phaser.Device" > "Fullscreen" > "request"  with the description " If the browser supports the Full Screen API this holds the call you need to use to activate it. "



Share this post

Link to post
Share on other sites

I've been trying to add a button to make the game fullscreen with thories code, but when I press the button I get 

'requestFullscreen' on 'Element': API can only be initiated by a user gesture.

This is the code that calls that function.

let fullscreen = this.add.image(16,16,'fullscreen').setInteractive()


Share this post

Link to post
Share on other sites
On 5/10/2018 at 10:32 PM, samme said:

I tried trick from "Antriel" but only give me blackscreen in firefox, it works in safari

There is warning in console for firefox "Request for fullscreen was denied because requesting element is not in the currently focused tab"

is there any other solution for fullscreen?

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.