LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   game animation (https://www.linuxquestions.org/questions/programming-9/game-animation-363755/)

cyb0rg777 09-15-2005 06:43 PM

game animation
 
I am writing a game using SDL and C.I want to use animated gif images for characters .Gimp creates them well.There are going to be a lot of frames of animation .

Is there a way to blit a complete animated gif to a surface?If not ,how can I grab all the frames so I can animate them?

alred 09-16-2005 01:11 PM

not exactly for GIF animation ...

theres a SDL headers and functions package for flic animation file format

heres some informations and conversion utilities to and from flic format , if we need to work on gif , we might need netpnm ...


hope this helps you in one way or another ...

cyb0rg777 09-17-2005 01:58 PM

Thanks alred,

I was hoping for something already built into sdl or at least a debian package so I can distribute it easy if I decide to.I guess I will split my .gif into .png files .I'm going to have a lot of .png files,maybe hundreds.I hope my game doesn't turn into a memory hog.My main character is going to be like a fighting type game with different animation for attack high ,attack low,block high,etc.It is a non-tile based side scroller.

Any example code or links would be helpful. ;)


All times are GMT -5. The time now is 03:09 PM.