• Advertisement
Sign in to follow this  

sprites again...how to use?

This topic is 4887 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

elo ppl. Can anyone please give me an example where sprites are being used for animation and background in C++; i mean a sample code. I wanna know how to use the bitmaps dynamically. Thanx

Share this post


Link to post
Share on other sites
Advertisement
C++ alone can't do that. You need a 2D graphics API (3D can also do it, but let's forget about that right now) and then follow it's examples.

Here is a list of API's which can do 2D graphics: SDL, OpenGL, Allegro, DirectDraw, Direct3D.

Try SDL at: www.libsdl.org

Share this post


Link to post
Share on other sites
There are some nice tutorials at www.gametutorials.com which show you how to animate bitmap sprites.

Quote:

Animation Part2
Author: DigiBen

2D animation using only two bitmaps. One is used for the "creature", the other is used for the "background".

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement