A SPRITE is a special type of user definable character which can be displayed anywhere on the screen. Sprites are maintained directly by the VIC-II chip. And all you have to do is tell a sprite "what to look like," "what color to be," and "where to appear." The VIC-II chip will do the rest! Sprites can be any of the 16 colors available.
Sprites can be used with ANY of the other graphics modes, bit mapped, character, multi-color, etc., and they'll keep their shape in all of them. The sprite carries its own color definition, its own mode (HI-RES or multi-colored), and its own shape.
Up to 8 sprites at a time can be maintained by the VIC-II chip auto- matically. More sprites can be displayed using RASTER INTERRUPT techniques.
The features of SPRITES include:
These special sprite abilities make it simple to program many arcade style games. Because the sprites are maintained by hardware, it is even possible to write a good quality game in BASIC!
There are 8 sprites supported directly by the VIC-II chip. They are numbered from 0 to 7. Each of the sprites has it own definition location, position registers and color register, and has its own bits for enable and collision detection.
Sprites are defined like programmable characters are defined. However, since the size of the sprite is larger, more bytes are needed. A sprite is 24 by 21 dots, or 504 dots. This works out to 63 bytes (504/8 bits)
|This page has been created by Sami Rautiainen.|
|Read the small print.||Last updated May 12, 2002.|