Skip to main content
gamedev.net
🔒 Locked

Sprites

Started by asdasd12345 Oct 8, 2006 at 10:03 AM 1 replies 550+ views
Original Post
asdasd12345
asdasd12345
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???
http://www.geocities.com/asdasd12345/
Ravuya
Ravuya
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.