I want to start my game in full screen, but I can't do it, I can only do it manually.
Can anybody help me?
Don't think you can.
I know with Chrome they prevent that and require the user to actually click on something before going full screen.
A user action is required by browsers before going full screen indeed.
You may possibly have it working on a binary executable export (nw.js), using the Request Full screen action of the Browser plugin on start of layout of your first executed layout (not guaranteed it will work, and would work only on "desktop applications").
Develop games in your browser. Powerful, performant & highly capable.
Hi guys, I found a way to start the game in full screen in case anyone is interested.
Only one Boolean variable is needed, and we say that if it is true, we request a full screen and if it is false, we delete the full screen. In this way we can also make the player deactivate this action.
The only thing is that when the game opens, while loading it will remain in a window, but when it starts it will open in full screen.