A89: put_sprite_mask
[Prev][Next][Index][Thread]
A89: put_sprite_mask
Can someone tell me what's wrong with this?
move.l 24,d0
move.l 20,d1
move.b #11111111,d3
lea spritea(pc),a0
move.l graphlib::plane0,a1
jsr graphlib::put_sprite_mask
lea spriteb(pc),a0
move.l graphlib::plane1,a1
jsr graphlib::put_sprite_mask
Shouldn't the constant mask clear the area directly behind the sprite? Also,
how can I change this so I don't need two separate sprites? In other words,
instead of loading another address for the second layer of the sprite, what
do I need to add to a0 to get the location of the sprite directly below it?
Finally, on a similar note, how can I access a specific pixel of a sprite?
Do I just add 1 bit to the address for each pixel from the beginning?
Follow-Ups: