Log In  

Cart #srs1_0-2 | 2020-10-30 | Code ▽ | Embed ▽ | No License

This is a compact and efficient system that enables recoloring of sprite graphics. For just 76 tokens, plus any function calls and data strings, you can easily change the color palettes of level tiles or characters based on an arbitrary number of conditions, and even animate them using color cycling. These kinds of techniques were used extensively in games for consoles like the NES to increase graphical variety while conserving memory space. The cart explains the syntax of the data strings and includes a simple demo of what the system can do.

P#83432 2020-10-28 18:14 ( Edited 2022-01-03 00:09)


nice technique!

P#104052 2022-01-01 22:51

I did something like this years back, @JadeLombax. Always good to share code. Let me see ...

I had a bit of an explanation HERE:


Even did a very busy star movement HERE:


All only modify the palette.

Years back in QBasic you could modify all 256-colors. I wrote a program called Sealife where absolutely everything you saw, water, bubbles, life, was animated entirely through clever palette manipulation.

It may be possible to use these elements again for a different kind of animation principle.

Interesting your animated gears. That's quite impressive and something I would find difficult to render.

P#104072 2022-01-02 02:31 ( Edited 2022-01-02 02:32)

Nice to see somebody noticed this, seems like it got kind of buried. I actually made this to see if I could recreate the animated backgrounds from Megaman 2, which is where all the tile designs come from.

P#104082 2022-01-02 04:33

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-10-01 15:59:06 | 0.025s | Q:17