Advertisement

Sprites

Started by February 07, 2003 03:58 PM
3 comments, last by haimon15 21 years, 9 months ago
i want someone to explain me the idea behinde Sprites. i would be very thankfull.
Sprites are game characters, or items. Just about anything you interact with in a 2d from enemies to powerups are sprites.

What is a sprite? Well a sprite is created very similar to how cartoonists make their cartoon characters. Each "frame" of the sprite is draw into a bitmap, and then placed along side each other this creates something that looks like a comic strip of still bitmap images that when "flipped" through in 2d look to be animated.
Advertisement
but how do i move the sprite? when i move to the next frame do i erase the last one with a box, puttong some sort of a "mask" over it or do i refresh all the screen?
You redraw the entire screen, background, sprites, items, everything every frame so erasing it isn''t needed.
thanx.

This topic is closed to new replies.

Advertisement