The game isn't really the main reason for this post, it's the graphical thing I did with it.
(Although, in case you're wondering, the game is Slime, and it may have a few glitch fixes)
It pretty much speaks for itself. I really only chose Slime because I thought it best suited this game more than any of my other work-in-progress games. Feel free to extract the GART function and use it in your stuff! The function is at the very bottom of the code, and only uses the BAR and BARSIZE variables. It doesn't actually need that line where it references "SLIMES", so just delete that and you can probably just paste it right into any of your projects. (Just remember to put GART() after you render!)
A simple demo program that contains a function to dim the palette (By swapping the colors around, sort of like the fade out effect in Jelpi).
If this is far overcomplicated, please tell me.
Z: Show palette only (Fullscreen palette)
X: Show demo scene (Minimize palette)
Left: Brightest (Normal colors)
The "Darkest" option isn't pure black or even just before pure black, but if you are so inclined you can likely easily add some more settings if you need them.
Use the function in any of your games or projects, if you feel like using it. The demo graphics are from games I've made (And one I'm currently making, which inspired me to make this), so I ask that you don't use the demo graphics.
I'm sure this isn't the absolute end-all be-all for this, you could probably tweak and improve this one vastly, but it's basic enough. My most major concern is the size of the function, which I vaguely think I could shrink somehow.