Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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

share|improve this question
3  
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 :) –  Roy T. Apr 4 '12 at 11:37

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer
    
thanks for providing guidance –  Siddharth Apr 5 '12 at 4:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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