Liberty BASIC Help Online |
What is a Sprite?
Here is a background image:
Bitmaps are rectangular images, like the one above.
A program might need to put a picture of a hopping frog onto this background.
Here is the picture of a frog:
The frog is a bitmap also, and bitmaps are rectangular.
Here is the bitmap of the frog, drawn onto the background:
That doesn't look very convincing!
It is possible to make it look like the frog is part of the picture by using sprites. When done with sprites, the picture looks like this:
Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/