Sign in to follow this  
fuedone

multi image textures/sprites

Recommended Posts

say i have a 2d game with 3 sprites and a background the background uses 3 different textures each sprite has 8 animations. should i store the backgrounds all in the same file. (backgrounds.png) and each sprites animations in the same file. (say player1.png) or can i put them all as completely different images into my program without a loss of speed/memory. (water.png,grass.png, player1walk1.png, player1walk2.png etc) using c#/xna

Share this post


Link to post
Share on other sites
I'm not familiar with XNA, but in general it's preferable to have a few big textures instead of lots and lots of small ones. In 2d, the common practice is to do things like throw all the animations for a character in one texture and then display only the sub-rectangle according to the frame you need.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this