Sign in to follow this  
asdasd12345

Sprites

Recommended Posts

I am making my first game in a long time, and I am using SDL. What I want to know is if you have a sprite with lots of frames of animation, where do you store wht different frames? Do you have one giant SDL Surface that contains all the sprites and then use just pull them off that to the sprite surface that is blitted to the screen? Or just have a different surface for each frame of animation???

Share this post


Link to post
Share on other sites
Generally, people use sprite sheets to save on memory and reduce any texture-switching penalties that might exist.

I'd start out working with separate texture files and then try to make a sheet later if the performance isn't up to snuff.

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