2d sprite animation

Started by
12 comments, last by Makoy 20 years, 5 months ago
Guys! I''m just asking a simple animation! I mean how should I do that? Is it possible on C++ Classes or Structure? If so? How''s it done?
Advertisement
quote:Original post by Anonymous Poster
Guys! I''m just asking a simple animation! I mean how should I do that? Is it possible on C++ Classes or Structure? If so? How''s it done?

What do you want??? exact code? Of course it''s possible with a class and there are different ways you can organie it.
from Impossible
What do you want??? exact code? Of course it''s possible with a class and there are different ways you can organie it.


yeah I''m having trouble embeding the bitmaps to the source code.
Can you at least give me an insight on how it is done. If you can give me a sample source cod, that''ll greatly appreciated.
Flamers are worst than Newbies
quote:Original post by Makoy
from Impossible
What do you want??? exact code? Of course it's possible with a class and there are different ways you can organie it.


yeah I'm having trouble embeding the bitmaps to the source code.
Can you at least give me an insight on how it is done. If you can give me a sample source cod, that'll greatly appreciated.

Well, you continue to just say "non-API" so no one knows exactly what platform you're coding for or how you're planning on getting graphics on the screen. But there are bitmap loading articles hrere and here. When it comes to actually drawing the articles use direct draw and opengl respectively. If you're using the GDI you probably want to use "LoadBitmap" along with "BitBlt" this explains it decently. Beyond those I can't really help you without knowing the platform you're coding for. If you're using something old or closer to the metal, like writing a mode 13h dos program, the same principles apply, although you have to blit the bitmap data yourself by copying the image data to the video memory pointer.

[edited by - impossible on October 30, 2003 4:51:05 AM]

This topic is closed to new replies.

Advertisement