Pico-8 Bach Inventions Effects ~ Day 11: Glitchy Clearing (Patreon)
Content
Hi everyone!
A few times in the past, I've mentioned that, in a Pico-8 cart, clearing the screen unconventionally could lead to very interesting possibilities. Today's Bach portrait's clearing is one of them!
At the start of every frame, each line of the screen has 1/10 chance to be "cleared". The "clearing" colors the line in a way which, if applied to all the lines, makes wavy colorful columns. It only uses the rectfill function and that makes it super CPU-cheap.
After this little treatment, even more glitchiness! We copy random portions of memory from the cart onto the screen!
Now it's a good idea to carefully select which portions of the memory you're copying and how long those portions are, but apart from that, the memcpy() function makes this really easy!
In this portrait, we're copying from the music data (how could we not??) and from the screen itself, back onto the screen. (but probably somewhere else on the screen) This only has 1/10 chance to happen each frame, with a preference for copying from the screen. (the music data looks really messy)
And then we carry on to draw Bach's face and then we do those random frames which also copy screen data back onto screen data, but in much more orderly fashion! I'm not getting into that part because it would take too long, but it does use memcpy as well, one call per line of the frame. I'm sure you can figure it out by yourself! ;)
That's it for today though! Ask any questions that might pop in your head!
As usual, the downloads for this portrait are available to my 5$+ supporters over there!
Take care and have a nice week-end!
TRASEVOL_DOG