TIC-80 icon indicating copy to clipboard operation
TIC-80 copied to clipboard

Stop lower bbp being able to use higher colour indexes

Open ChildishGiant opened this issue 4 years ago • 8 comments

I think games that run in 1bbp etc shouldn't be able to display anything out of range.

ChildishGiant avatar Mar 16 '21 21:03 ChildishGiant

shouldn't be able to display anything out of range.

Please clarify more clearly what this means - and what the intention of this request is... Are you having some issue or seeing some problem in your game because of the way it currently works?

To me being able to use higher offsets with spr, etc is a bug, not a feature... plus I'm pretty sure this would also be a breaking change and that it would break any existing cartridges relying on the current more flexible behavior.

joshgoebel avatar Mar 17 '21 06:03 joshgoebel

An example is that when using print it still defaults to colour 15 and can be set to colours other than 0 and 1. It would be a breaking change but I agree that it feels like an oversight, not a feature.

ChildishGiant avatar Mar 17 '21 13:03 ChildishGiant

Lower BPP is an addressing/render mode, not a "display mode". It only controls how sprites are drawn, it does not make your "screen" actually 2 color or 4 color. If you ask print to use color 15 it will use color 15. There is always 16 colors at the hardware level.

This is correct behavior, IMHO.

If you truly want 2 colors period set your whole palette to alternate them (which has the side effect of 15 working "as is") or else just make all your other palette entries black.

joshgoebel avatar Mar 17 '21 14:03 joshgoebel

@nesbox It is perhaps deceptive how the palette editor only shows two colors though... perhaps this could be improved somehow?

joshgoebel avatar Mar 17 '21 14:03 joshgoebel

I like the current implementation and don't see any other good variants. Pls let us know if you have any thoughts.

nesbox avatar Mar 18 '21 14:03 nesbox

Quick and dirty:

Screen Shot 2021-03-18 at 10 36 12 AM

Honestly I'm not sure the palette needs to change at all... it should just not allow selection of the high colors when in 1bpp or 2bpp mode. If someone finds them distracting they can always set them to black.

joshgoebel avatar Mar 18 '21 14:03 joshgoebel

Could put a gray transparency over the others to show they're disabled, would help with the distraction if that's an issue.

ChildishGiant avatar Mar 18 '21 15:03 ChildishGiant

Nice idea, but I think it'd be hard to know if they were truly greyed out or simply different colors at a glance... that's the problem with colors. :)

joshgoebel avatar Mar 18 '21 15:03 joshgoebel