Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm creating a 2D game for mobile touchscreen devices, specifically Android and iOS. I would like to know what is the best way (regarding performance and best practices) to manage sprite sheets.

Should I create different sprite sheets (for ldpi, mdpi and hdpi) and then scale according depending on the screen resolution or there is a better solution?.

I know that maybe the solution that someone could provide me would be platform independant but I'm using the NME framework (, perhaps you know a good solution using this framework.

share|improve this question

There are solutions to this question all over the web. Android documentation gives an excellent series of tutorials on this subject. Specifically:

These same principles can be applied to the 2d textures you are a using for your openGL objects. Although, I have never worked with openFL bitmap manipulation is handled in android using

 ByteBuffer class and BitmapFactory 

which imports from 

and not

share|improve this answer

Your Answer


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.