Log In  


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

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.

6


1

nice technique!


1

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

I had a bit of an explanation HERE:

https://www.lexaloffle.com/bbs/?tid=35927

Even did a very busy star movement HERE:

https://www.lexaloffle.com/bbs/?tid=35929

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.


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.



[Please log in to post a comment]