Full screen on html

monteserin

  • Posts: 1
Hello, i have made a few sample games with Stencyl, but i cannot export it to html5 full screen size or to make it to fit the viewport size. The game is always smaller than the browser viewport or it is cropped. I think i have test all the options in
settings → web, but i have no lucky...

Thank you in advance

Max Marin

  • Posts: 138
I do not think you can do it, but the site that hosts the game would have to do it because what is put in full screen is the browser (f11), you could put a text that says press f11
 ;D Max marin just starting
I'm human

FMStudioGameDev

  • *
  • Posts: 230
Just go in Settings -> Advanced and put this in OpenFL Settings field:

Code: [Select]
<window resizable="true" if="html5" />

Max Marin

  • Posts: 138
and how do you get out of full screen, because it's a weird kind of full screen
I'm human

makaydenko

  • *
  • Posts: 32
FMStudioGameDev, your tip is good only for resize window. But there is an error in the console:
Code: [Select]
Uncaught SyntaxError: Unexpected token ] in JSON at position 877
    at JSON.parse (<anonymous>)
    at Function.com_stencyl_Config.loadFromString (Config.hx:83:19)
    at Function.com_stencyl_Config.load (Config.hx:56:3)
    at Function.ApplicationMain.main (ApplicationMain.hx:49:3)
    at Tools.hx:323:38
    at $hx_script (Tools.hx:323:38)
    at Object.$hx_exports.lime.embed (Tools.hx:323:38)
    at __completionCallback ((index):54:9)
    at HTMLScriptElement.script.onload (progress.js:72:6)
And nothing works.

Tell me, please, does it work for you?

Justin

  • *
  • Posts: 4636
There's a problem with the generated game-config.json file. Open this file your workspace: [stencylworks]/games-generated/[game name]/Config/game-config.json. (The workspace, [stencylworks], can be found with Tools > View Folder > View Workspace Folder.)

Paste the contents here or file a new issue on the issue tracker.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

makaydenko

  • *
  • Posts: 32
Thanks! This problem is fixed in the new build Stencyl 4.1.0-beta (b10927).