13 comments
This stuff is sorta possible with the current syntax using a bunch of macros like these: @player-1 Player/size$ @bellinitte Added to drifblim(adds 1 byte?!): https://git.sr.ht/~rabbits/drifblim/commit/a9446ceeb63246671229496fb67d9fe828e533ed @neauoire if all the machinery is already in place and it's not a huge pain in the butt to implement in drifblim and friends, then yea, I think it would be cool :) I use this approach all over the place in this program i'm writing btw, got this idea from you talking about enums in this list https://lists.sr.ht/~rabbits/uxn/%3CCAKis%3DaFmUedhNM8pgm8n2YjUj4aM2ozNH6+Gc%3DPQC88SY2oWCw%40mail.gmail.com%3E @bellinitte it's nice that we keep on finding new things to do with so few moving parts @bellinitte really easy to write some nice lil accessor macros too: %Player/position@ { .Player/position ADD LDZ2 } |
The `$label` syntax is not a thing, BUT it could be!! I managed to hack it together for uxnasm in a couple of lines of code
https://paste.sr.ht/~bellinitte/54fd46afdf4aeaac3ae4449e518ba11daf7c6309