Hi,
I have created a game and it is pretty much done. Unfortunately (and understandably) most players won't go through the steps to download my game, so play in browser would be preferable. The HTML 5 export works fine and I have hosted the game on itch.io for a couple of tests. Two things failed leading to these questions:
- how to manage window size / scaling in HTML 5?
- how to detect gamepads?
I don't get it to play in fullscreen or scale correctly. I set a virtual resolution of 240x135 (SetVirtualResolution) and scale up to 1920x1080 (SetWindowSize) on Windows machines (it's a retro game). In HTML 5, if I click on the "Toggle Fullscreen" button it's running in fullscreen, but the actual window only takes up 240x135 (see screenshot). If I set code the window size to be fullscreen, it doesn't work either. What would be the correct way to set up the window size for HTML 5 (hosted on itch.io)?
I use the CompleteRawJoystickDetection() to check for gamepads and use them (it's a two player coop game). Again, this works fine on the Windows export, but fails to detect on the HTML 5 build. Do I need to use something else, or does this command simply not work with HTML 5?
Solving the first question is more important, since I've implemented backup keyboard controls, which work fine.
Thanks so much for any input.