Jump to content
IGNORED

160B Alternative 12 colors?


asdronin

Recommended Posts

Hi all,

I spent a lot of time dealing with colors when I started in the 7800Basic world (you know importing graphics wrongly having them show different palettes than I wanted etc), and still now I see many things that I dont manage to get fully, now that somehow I feel Im more or less prepared to make the first attempt on a game I have to ask this doubt that comes from my day 1, I see in table that 160B mode allows 12 colors, how is that so? I tried importing images with more than 3 colors, mainly 12 colors (I mean 3 + transparent and 12+1) and nothing seems to work, in fact I cant define a palette big enough to handle that and when sprite are pasted they require one palete, sorry if Im missing something very obvious.... what are these 12 colors that are theoritically allowed in this mode? can we import a image with 12 colors and use it as sprite? as said Im very sorry if my question sounds too simple, there are many many things that I cant manage to understand in this environment but of course Im eager to improve =).

 

Edit: Right now Im pasting 3 sprites one of top of another to achieve 9 color sprite that looks like I want but of course thats not the most accurate way if we can use 12 colors in one image

Link to comment
Share on other sites

When you import your graphics you'll have to specify in the incgraphic / incbanner parameters that it's intended to be drawn in 160B mode as the way the graphics data is structured in ROM is different for different modes. When you use plotsprite / plotbanner 7800BASIC will know to set it up as a 160B object.

 

As for the palettes, one of the drawbacks of having more colours is having a restricted choice of palettes. You can only specify palette 0 or 4 but 160B mode treats 0 as the first 4 palettes combined and 4 is the last 4 palettes combined. The reason that it's 12 colours and not 16 is because each of the individual 8 palettes is still 3 colours + background / transparency so you actually get 12 colours and 4 duplicate values for background / transparency.

Edited by SmittyB
  • Like 6
Link to comment
Share on other sites

Thanks a lot SmittyB for the great explanation, I finally understood this and I have been going around this issue since I downloaded the 7800Basic, I get the feeling that its better to use 3 colors per sprite and maybe overlap 2 or 3 sprites than using one with 12 colors, at least I get more freedom I think like for instance I made a ship and I can overlap 3 sprites to make it 9 colors but Im not using more palettes as I would be needing other palettes for background tiles and other things later on, however of course Im wasting some resources as Im pasting more sprites than I would need but so far it seems really fast. As said thanks a lot =)

  • Like 2
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...