Jump to content
IGNORED

Bitmap Masking/Moving a soft sprite over gfxs


Recommended Posts

Hi.

It's what the title says but I wanna know what's different or if there's more code and c.p.u./cycles need if the soft sprite has BAK [00] colour register in it.

Here I have, as an example, sky as PF0 (blue) and then gfxs use BAK (black), PF1 (white) and PF2/PF3 (green / red):

post-6517-0-33762100-1448986642.png

 

And why I want to have the black BAK on soft sprite and isn't the blue?

For two reasons and have to be two at the same time:

-» I want to have changing colours DLIs on the sky ('backs' be like sky, floor,...) but at the same time I want to have the borders in Black so that I can work in 32 or 40Bytes wide screens;

<AND ALSO BECAUSE>

-» I want to use Players on the soft sprites, one per each and for what I want need Prior2 (2PMGs that are PMG2 and PMG3, one on each soft sprite and then PMG0 and PMG1 in multicolour mode hardware sprite only for our guy/man that this way will always go over all gfxs and soft sprites).

 

Please post your comments...

Thanks.

Edited by José Pereira
Link to comment
Share on other sites

We covered a little of this on the thread using Sonic graphics. Effectively you are punching a whole through the PF foreground to include the black ground in an image, so this is achieved through your masking.

 

In WCL, the missiles are used to mask borders via the 5th colour, which I find an intriguing approach.

  • Like 1
Link to comment
Share on other sites

Yes you need some kind of masking if you want to use 00 for details.

If your game already has sprites moving over other sprites or background, you have to use it anyway.

 

If your background is empty or you just ignore byte boundaries like in Ransack, there's of course no additional cost for using black :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...