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.
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
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:
- The render pipeline in Defold
- Adapting graphics to different screen sizes
- How GUIs can be adjusted: GUI scenes in Defold
Got it, thanks!