How to use different texture(image) for different resolution in libGDX? Also specify how to detect it from asset folder?

  • 3
    \$\begingroup\$ You really need to expand this question and tell us what your problems are and what research you've done so far yourself. How are we supposed to help you reading just this single line blurp of thoughts :) \$\endgroup\$ – Roy T. Apr 4 '12 at 11:37

The question is pretty vague, but if I'm interpreting it correctly, you're going to need to do it manually, but libgdx can help. You're going to want to use the ResolutionFileResolver. The author of libgdx provides an example in his AssetManagerTest. I wrote about how to use the ResolutionFileResolver in this answer.

I think if you read through the code, that should be enough to get you started, and you can come back with more specific questions.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.