A86: Re: Clipped Sprites


[Prev][Next][Index][Thread]

A86: Re: Clipped Sprites




It all depends on your sprite routine.  If you're using a routine that's
compatible with Jimmy Mardell's ASCR or the Asm Studio sprite editor, then
you'd use this:

   .db %00000000
   .db %01111110
   .db %01111110
   .db %01111110
   .db %01111110
   .db %01111110
   .db %01111110
   .db %00000000

The mask for these routines is quite simple:  if the bit is on, it's drawn.
It works the same way for grayscale, so you only need one mask for two
layers.  Though you could get some interesting effects if you did use two
masks...

>
> say i have a sprite like this
> Sprite:
>   .db %00000000
>   .db %01111110
>   .db %01000010
>   .db %01000010
>   .db %01000010
>   .db %01000010
>   .db %01111110
>   .db %00000000
> and i want the center of the box to be white but allow the background to
show
> through the outside edge of it
> what mask do i use?




References: