Resolution problems with web export

Godot Version

4.4.1

Question

I’m having trouble getting the resolution correct when exporting to web, to deploy to itch.io. It behaves differently for mac/windows users even. The result is that the game is smaller (mac) bigger (windows) than the canvas itch creates. Is there a setting I’m missing to fix this problem?

My project settings set Display->Window->Viewport Width/Height to : 720 and 1280.

When importing into itch I manually define the resolution to 720, 1280.

I’ve played with many of the options inside of Godot Project Settings, although I can’t seem to get the game to display properly on itch. I’ve attached what it looks like on chrome using macosx.

I would instead mess with the stretch setting in window. It will produce much more consistent results.

1 Like

The stretch settings were the answer. I had to choose “canvas_items”, and now the game takes up the whole screen in itch.io. Thanks for the help!

1 Like

No problem. Good to hear it worked.