So varvara (the "machine" that hosts uxn) has four colours. Great! Four colours is plenty, look at this lovely four colour scene. However, varvara can only draw sprites with three colours - one is reserved for transparency. And if you'll notice, I really want to have 4 colours in the sprites - I need the dark blue to contrast with the background colours, I need the green and orange for clothes and hair, and I need the cream for her skin.
No problem! We'll just split her into two sprites, like in Mario 2. https://www.youtube.com/watch?v=opoQdHqGEHg However. We have a further problem. Varvara cannot draw transparent sprites with colour 0. At all. Not even a 1-bit sprite! It always uses colour 0 for transparency. So we do the unenviable - we completely reimplement 1-bit sprite blitting to allow us to draw the colour 0 skin. This is by far the most complex thing I've implemented in uxn assembly so far. But it works!
How do the character sprites in Super Mario Bros. 2 have 5 colors? It's all explained right here.LINKSTwitter (updates): https://twitter.com/RetroGameMechExP...
I'm not sure how much I will do with this. I drew some attacking and getting hurt animations, hearts, rupees, a few enemies. It would be nice to get some rudimentary interactions in. I'm slowly getting some idea of how to write uxn. It's fun, but only being able to interact with the top few bytes of the stack is pretty mind-bending.
Wow! Well done. This is shaping up nicely! Varvara's color limitations are pretty brutal, but you've managed to work around them well enough it looks like 😀 Let me know if you're ever stuck and would like me to look over a bit of drawing code, I might have a few suggestions. Keep it up!
Annette
in reply to Annette • • •Annette
in reply to Annette • • •However. We have a further problem. Varvara cannot draw transparent sprites with colour 0. At all. Not even a 1-bit sprite! It always uses colour 0 for transparency. So we do the unenviable - we completely reimplement 1-bit sprite blitting to allow us to draw the colour 0 skin. This is by far the most complex thing I've implemented in uxn assembly so far. But it works!
5 Colors in One Sprite Explained - Audiovisual Effects Pt. 04
YouTubeAnnette
in reply to Annette • • •Annette
in reply to Annette • • •My first uxn program. It's a little bit like Zelda!
GistDevine Lu Linvega
in reply to Annette • • •Annette
in reply to Devine Lu Linvega • • •