Liberty BASIC Help Online

What is a Sprite?
 
Here is a background image:
 
Image bm6.GIF
 
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:
 
Image bm7.GIF
 
The frog is a bitmap also, and bitmaps are rectangular. 
 
Here is the bitmap of the frog, drawn onto the background:
 
Image bm8.GIF
 
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:
 
Image bm9.GIF
 
 


Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/