[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]

turn ON each of the four colors you've chosen for your sprite:

BIT PAIRDESCRIPTION
00 TRANSPARENT, SCREEN COLOR
01 SPRITE MULTI-COLOR REGISTER #0 (53285) ($D025)
10 SPRITE COLOR REGISTER
11 SPRITE MULTI-COLOR REGISTER #1 (53286) ($D026)

NOTE: The sprite foreground color is a 10. The character foreground is a 11.

SETTING A SPRITE TO MULTI-COLOR MODE

To switch a sprite into multi-color mode you must turn ON the VIC-II control register at location 53276 ($D01C). The following POKE does this:

   POKE 53276,PEEK(53276)OR(2^SN)
where SN is the sprite number (0 to 7).

To switch a sprite out of multi-color mode you must turn OFF the VIC-II control register at location 53276 ($D01C). The following POKE does this:

   POKE 53276,PEEK(53276)AND(255-2^SN)
where SN is the sprite number (0 to 7).

EXPANDED SPRITES

The VIC-II chip has the ability to expand a sprite in the vertical direction, the horizontal direction, or both at once. When expanded, each dot in the sprite is twice as wide or twice as tall. Resolution doesn't actually increase... the sprite just gets bigger.

To expand a sprite in the horizontal direction, the corresponding bit in the VIC-II control register at location 53277 ($D01D in HEX) must be turned ON (set to a 1). The following POKE expands a sprite in the X direction:

   POKE 53277,PEEK(53277)OR(2^SN)
where SN is the sprite number from 0 to 7.
[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]
This page has been created by Sami Rautiainen.
Read the small print. Last updated May 12, 2002.