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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.