Various textures for multiple resolutions
How can I use a different texture (image) for different resolutions in libGDX? Also indicate how to find it from the resource folder?
I need to store images with different resolutions in different folders that you give me and please give a specific example.
+3
Siddharth
source
to share
1 answer
Use AssetManager to load your assets. When loading resources, you can use different "File Resolvers" to determine which specific asset is loaded based on your environment. For resolution based on screen resolution use ResolutionFileResolver
.
AssetManagerTest demonstrates this pretty well.
+2
PT
source
to share