[A89] Re: sprite


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

[A89] Re: sprite




If ~0xFFF creates four extra pixels at the beginning, then why doesn't it cover up those four
pixels (erase them) when I AND the mask to the display?  When the sprite reaches the left, it
leaves the four pixels before the edge as they were, and doesn't erase them.  


--- Sebastian Reichelt <SebastianR@gmx.de> wrote:
> 
> | there would only be a problem if y=0 and x<0 but i checked out the source
> | code and the sprite has full lines of pixels so there shouldnt be an
> | invisible part to the sprite.
> 
> Yes, there is.  Look at the mask.  It's ~0xFFF in each line, which is the
> same as ~0x0FFF.  Sprite16 is being used, therefore the mask starts at the
> 5th pixel.
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/




Follow-Ups: References: