Phaser: Add Fullscreen support

Created on 2 May 2018  路  8Comments  路  Source: photonstorm/phaser

There seems to be some fullscreen detection but it's not exposed in the scene/scale managers (or I missed in on search)


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

馃挅 Feature Request Medium Low

Most helpful comment

from my point of view, it is a very important thing to have an ability to play games in full screen. So, I don't think it is the low priority

All 8 comments

This issue is currently blocked pending development of the Scale Manager, which will begin during the month of May 2018. It will be updated once it has been tested against the new Scale Manager.

from my point of view, it is a very important thing to have an ability to play games in full screen. So, I don't think it is the low priority

It's currently absolutely possible to fill a page with the canvas using the browser's and Phaser's resize events.

The rest of the full-screen support, after that fact, that hasn't been wrapped up by Phaser yet, but you can still implement it yourself.

Check out this example:

http://labs.phaser.io/edit.html?src=src\game%20config\game%20resize.js

Hit Launch to see it in action outside of an iframe.

@hexus thanks for your answer
Yes, I know about the resize. But fullscreen and resize has slightly different meanings. Play game in fullscreen means that everything in the screen except the game is hidden. So we don't see address bar, all browser tabs etc. This is the thing that I want to see in the new phaser, like it was in the previous version.

As I said:

The rest of the full-screen support, after that fact, that hasn't been wrapped up by Phaser yet, but you can still implement it yourself.

I do understand the difference. :)

You can still use the browser's Fullscreen API to achieve what you want, until the Scale Manager is implemented to do it for you.

@photonstorm , is there an update for the progress of the scale manager implementation?

@raisen According the devlog, the Scale Manager will be available in v3.12-beta3 closer to the end of August.

Thank you for submitting this feature request. We have implemented this and the feature has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

Was this page helpful?
0 / 5 - 0 ratings