TIC-80
TIC-80 copied to clipboard
Stop lower bbp being able to use higher colour indexes
I think games that run in 1bbp etc shouldn't be able to display anything out of range.
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.
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.
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.
@nesbox It is perhaps deceptive how the palette editor only shows two colors though... perhaps this could be improved somehow?
I like the current implementation and don't see any other good variants. Pls let us know if you have any thoughts.
Quick and dirty:

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.
Could put a gray transparency over the others to show they're disabled, would help with the distraction if that's an issue.
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. :)