I saw you're planning to discuss all the remaining devices next day, exciting! If you're taking requests, I'd love to see fonts in a future day. How they work and ofc how to use them, where to find sample files (uxn repo I think?), etc. Also linking to how fonts can be made. (Nasu? Also the unreleased #Slight from @zce)
@makeworld i like how the screen.tal example by @neauoire illustrates that: https://git.sr.ht/~rabbits/uxn/tree/main/item/projects/examples/devices/screen.tal#L57
a nibble (resulting from #0f AND) is converted into a short ( #00 SWP ) and multiplied by 8 ( #30 SFT2 ) to get a corresponding offset, as each tile is 8 bytes long.
that offset is added to the address of the font-hex label ( ;font-hex ADD2 ) that has a tile for each hexadecimal character.
the calculated address is then sent to .Screen/addr
So, the character sprite "A"(#41) begins at (#0041 #0008 MUL2 SPRITESHEET ADD2)
If the characters were 8x16 instead of 8x8, then it would be #0041 #0010 MUL2 SPRITESHEET ADD2
I hope this helps :)
Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them.