Re: A83: sprite won't clear completly


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

Re: A83: sprite won't clear completly




I had the same problem.  Post the code or send it as a personal e-mail and you
will probably get a more accurate answer.

Indiana Zephyr wrote:

> I think I figured it out.  First, you need to understand how XOR works:
> It flips the color where it draws the sprite.  So when you draw your guy, it
> flips the colors where your lines are to dark.  When you move again, it
> redraws the sprite _in the same place_, thereby flipping the dark again and
> making the whole area light.  Then the coordinates are moved slightly and it
> starts all over.  When you change what picture you are using, the dark areas
> in the picture on the screen do not match the dark areas in the new
> picture.  This makes it look like XOR is screwing up when it is really doing
> it's job perfectly.
>
> You probably don't understand that, so send me some private mail if you need
> more help.
>
> =Indy Z.



References: