Re: A86: XORing Sprites


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

Re: A86: XORing Sprites




Ok if I take an XOR routine and use it in my program then I would just call it
to draw a sprite.  Then whenever I want to erase that sprite I just tell it to
re draw the exact same sprite in the exact same spot and then it gets erased?
That'd make it much easier.  So this would draw then move a sprite to the
whatever direction it would move it to (its too early to figure it out and the
registers are probably wrong but this is the basic idea)

ld hl,sprite
ld b,3
ld c,3
call XORSprite
halt
halt
halt
call XORSprite
inc b
call XORSprite
ret

And don't bother telling m whats wrong with that just tell me if it would be
the basic idea for drawing erasing and moving the sprite.

Thanx  

Matt