Maybe someone has some advice on creating the most straightforward workflow to make a game fit different screen resolutions.
Question 1
Would you create game assets in 4K and downscale them by code? Or is it better to choose to upscale things? (I don’t know if there is a loss of quality when scaling with Defold)
I’ve searched the forum + the internet, and opinions are mixed on this.
Question 2
Would DefOS + Defold’s render options be a good workflow to use?
I don’t know if this is the correct setup in game.project:
msg.post("@render:", "use_fixed_fit_projection", { near = -1, far = 1 })
Project information
Platform: Desktop
Target OS: Windows/Steam
The most used screen resolutions on Steam are still 1920 x 1080.
Artstyle: Testing 3D and Pixel Art at the moment.
I have a 4K monitor, so it’s possible for me to test different screen resolutions. The player should always see the same things on every screen resolution.
After reading many things on the Defold website and testing things, I’m happy to tell you that I solved it.
I made a 3840 x 2160 image in Photoshop with different resolutions. (4K, 2K, and 1080)
And I added this image to the DefOS sample project to test the different Defold render settings.
To have the image always in the center of the screen, I used the following positions:
I have changed the project to 1920 x 1080, which will upscale to 4K with DefOS. I know that there are also players gaming on 1280 x 720. But if I try to test the game on a resolution below 800 pixels, the game won’t be displayed on the monitor. I read on the forums that it is expected behavior.
I will also have a look at the template project from britzl. Thank you, @selimanac, for giving me some advice on this!