• Building
  • My exported game is very tiny on my phone's browser

HTML5 export to itch.io. This may be an issue with that site, instead of a Godot issue. Sorry if that's the case.

On mobile browser, everything is squished to the upper left quadrant of the screen. Would it have something to do with the width and height I set in the project settings of 800x600?

might be either or a combination of both. Got a link?

I believe I've found a way to fix it. In Project Settings underneath Stretch, I set the mode to 2d and the aspect to expand. This makes it fit the height of my phone's screen, but it still leaves a large chunk of the screen to the right unused. So I'm pretty close, I just need to find the right combination of settings.

The mode was set to disabled for some reason. Maybe that's the default setting for 3.2.

I think you want stretch to viewport and aspect on keep height. That should fill the screen, however, you may have to adjust your level if you want there to be visible items on the side depending on how you coded the game.

Mode 2d can sometimes make texts inside buttons positioned strangely, even though they are all anchored correctly. That doesn't occur with mode Viewport, but then everything is slightly blurry. No matter the aspect I choose (keep, expand, keep height, keep width), it will not fill up the width of my screen. I can choose the ignore aspect, and it will skew it and always fill the screen, but it won't maintain any aspect ratio and obviously that's not the answer lol.

I'm content with keep, as it fills the height of my screen, and it centers it horizontally. Thanks, lads

Okay, I ran into this today and figured it out. Aspect expand does work, but you have to manually center the root node on your game. You can do this by connecting the "size_changed" signal and doing some math based on the new viewport size.