2 years ago

Making scratch blocks is now a single liner (read article)


If you make extensions for scratch, you are probably aware of the fact that block object syntax is pretty much 90% boilerplate. It's still better that scratch's terrifying abstract block syntax tree, but the fact remains, that's a lotta text for a single block! That's why I made block maker, it's a tool that allows you to make blocks in a single line of code, it is mainly finished but it still needs some error handling for invalid syntax and edge cases, feel free to use it anyway!

Yeah, and I have to clarify that this tool does not see the difference between brackets intended for defining block/argument types and brackets intended for text, nor does it care. You can't really use them, the best-case scenario is they would be all turned into square brackets, even these curly ones: {}

If something doesn't work as intended, you can always file an issue here, and as always, stay tuned for updates!

~{]:)



0 comments

Loading...

Next up

New time blocks, old one hidden so ur projects won't break Coming soon

Soo fezEngine is kinda pointless now that extensions made scratch usable, it also is not very compatible with scratch because send/receive message blocks are laggy as all hell unless you're using turbowarp which 'mind you has extensions, oh well

.... ... .

Me rn

Big Update: Done

Docs: Done

We getting the PR with this one

New advanced batch blocks and debug blocks coming soon!

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

I usually don't do this but for my timezone it's about to hit 2024 and I wish you guys a happy new year