How to use different texture(image) for different resolution in libGDX? Also specify how to detect it from asset folder?
I have to store different resolution images in different folder that thing you guide me and please give specific example.
Use the AssetManager to load your resources. When loading resources, you can use different "File Resolvers" to figure out which specific asset to load based on your environment. For a screen resolution based decision, use a ResolutionFileResolver.
The AssetManagerTest demonstrates this pretty well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With