[EDIT] Nevermind I got it, like you said: first the mask then the player. Thanks
[/EDIT]
I did what you told me, but it wont work. In fact, the sprite gets a kind of green/black color while it's intended to be yellow :-? Here are the bitmaps and the code I display them with:
Player:
[syntax="qbasic"]
DATA 00,00,00,00,43,43,43,43,43,43,43,00,00,00,00
DATA 00,00,43,43,43,43,43,43,43,43,43,43,43,00,00
DATA 00,43,43,43,43,43,43,43,43,43,43,43,43,43,00
DATA 00,00,43,00,00,00,43,43,43,00,00,00,43,00,00
DATA 43,43,00,00,00,00,00,00,00,00,00,00,00,43,43
DATA 43,43,43,00,00,00,43,43,43,00,00,00,43,43,43
DATA 43,43,43,43,43,43,43,43,43,43,43,43,43,43,43
DATA 43,43,43,43,43,43,43,43,43,43,43,43,43,43,43
DATA 43,43,43,43,43,43,43,43,43,43,43,43,43,43,43
DATA 00,43,43,15,15,15,15,15,15,15,15,15,43,43,00
DATA 00,43,43,43,15,15,15,15,15,15,15,43,43,43,00
DATA 00,00,43,43,43,43,43,43,43,43,43,43,43,00,00
DATA 00,00,00,00,43,43,43,43,43,43,43,00,00,00,00
[/syntax]
Mask:
[syntax="qbasic"]
DATA 255,255,255,255,00,00,00,00,00,00,00,255,255,255,255
DATA 255,255,00,00,00,00,00,00,00,00,00,00,00,255,255
DATA 255,00,00,00,00,00,00,00,00,00,00,00,00,00,255
DATA 255,255,00,255,255,255,00,00,00,255,255,255,00,255,255
DATA 00,00,255,255,255,255,255,255,255,255,255,255,255,00,00
DATA 00,00,00,255,255,255,00,00,00,255,255,255,00,00,00
DATA 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
DATA 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
DATA 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
DATA 255,00,00,00,00,00,00,00,00,00,00,00,00,00,255
DATA 255,00,00,00,00,00,00,00,00,00,00,00,00,00,255
DATA 255,255,00,00,00,00,00,00,00,00,00,00,00,255,255
DATA 255,255,255,255,00,00,00,00,00,00,00,255,255,255,255
[/syntax]
Code:
[syntax="qbasic"]
PUT (PlayerX% * 15 - 15, PlayerY% * 13 - 13), Player, AND
PUT (PlayerX% * 15 - 15, PlayerY% * 13 - 13), PlayerMask, OR
[/syntax]