Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-15-2005, 07:43 PM   #1
Registered: Dec 2004
Location: ~
Distribution: Debian
Posts: 143
Blog Entries: 8

Rep: Reputation: 15
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?
Old 09-16-2005, 02:11 PM   #2
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658
Blog Entries: 8

Rep: Reputation: 31
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 ...
Old 09-17-2005, 02:58 PM   #3
Registered: Dec 2004
Location: ~
Distribution: Debian
Posts: 143
Blog Entries: 8

Original Poster
Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
will you play windows game or linux native game pleasehelpme Linux - Newbie 16 04-29-2007 09:58 PM
C animation shegay18 Programming 8 07-14-2005 02:28 PM
2D/3D Game EASY Game Development Software tedjordan Linux - Games 1 03-22-2005 07:40 AM
game not receving game list from master server Rnastyracer Linux - Games 2 04-02-2004 11:20 PM
2D animation tools ReelExterminato Linux - Software 2 12-06-2003 03:09 PM > Forums > Non-*NIX Forums > Programming

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration