How do you handle screen resolution and screen sizes?

Hello all,

I’d like to build a simple 2D mobile game for both iOS and Android. From what I remember from using Cocos2d-x, there were many problems with screen resolution and screen sizes on mobile devices. How does Defold handle this?
Thanks

The Defold GUI system is relatively bare-bones, but it does provide a system for pivot, anchors and adjust modes so that you can create a responsive UI:

You can also set different view projections to either a fixed zoom or an adaptive zoom with a fixed aspect ratio:

1 Like

I would suggest you also look at a camera module. It will take care of the render script integration and input coordinates conversion.

3 Likes

Thanks , realy barebone ,
maybe someone know any open source example that handle this ?

What problems are you anticipating exactly? And how do you want them to be handled?

2 Likes