Sprite size

Hello, I have a question about sprite size. Should I make the resolution values of each sprite a power of 2 value? I read somewhere that while using atlases, it is not necessary to make powers of 2 values.

That is correct. There is no need to make individual sprites a certain size. They will all get packed into a texture/atlas which we will size correctly for you.

3 Likes

Thank you)

I’m going to take advantage of the topic to ask a slightly related question.

What is the best practice, should I create images for different screen resolutions or just the largest size and resize as needed at the start of the game?

As far as I know, Defold resizes everything in a game automatically

1 Like

That is not entirely true. You need to decide which behavior you want. You can let Defold stretch your content without maintaining aspect ratio, you can let Defold stretch while maintaining aspect ratio or you can tell Defold to not stretch your content at all. Some links:

4 Likes

Got it, thanks!