Discuss Scratch
- Discussion Forums
- » Open Source Projects
- » PyScratch, A utility to create blocks from text.
- SimpleSimulator
-
3 posts
PyScratch, A utility to create blocks from text.
Hi everyone! This is my first time in the forums, I have a cool project to share,
I have been working on a tool called PyScratch, it is a framework for making blocks but it has a built in programming language called ScratchText. It's super simple right now, and programming is very similar to reading blocks. For example:
move (10) steps
becomes
The Python part comes from a module I made that has methods for making blocks with a Python class. The ScratchText part is for parsing a text file into blocks.
If you are interesting in helping out, using, or testing the project, I have more details here:
https://github.com/IfanSnek/PyScratch
It is all open source.
I will try to answer question here if you have any!
I have been working on a tool called PyScratch, it is a framework for making blocks but it has a built in programming language called ScratchText. It's super simple right now, and programming is very similar to reading blocks. For example:
move (10) steps
becomes
move (10) steps.
The Python part comes from a module I made that has methods for making blocks with a Python class. The ScratchText part is for parsing a text file into blocks.
If you are interesting in helping out, using, or testing the project, I have more details here:
https://github.com/IfanSnek/PyScratch
It is all open source.
I will try to answer question here if you have any!
- ZZC12345
-
500+ posts
PyScratch, A utility to create blocks from text.
Pretty cool, and great documentation (unlike most of the ATer's projects). Have you seen scratchblocks? It's a library used by the Scratch Wiki and Forums to render Scratch Blocks from text, with a syntax similar to yours. You might want to try changing your syntax to something similar because most people are more used to that syntax.
Also, check out tosh, which is a Scratch 2 version of what you're making now.
Since this is your first time on the forums, most of Scratch's text-based (aka “real”) development community lives on the Advanced Topics forums, which is much more active than the Open Source Projects forums. Try making a new topic in that forum because people will be more likely to see it there.
Also, check out tosh, which is a Scratch 2 version of what you're making now.
Since this is your first time on the forums, most of Scratch's text-based (aka “real”) development community lives on the Advanced Topics forums, which is much more active than the Open Source Projects forums. Try making a new topic in that forum because people will be more likely to see it there.
Just hit report on your post and type “Move to the Advanced Topics Forum”. The report button doesn't actually automatically mute you or do anything like Scratch comments - it just pings moderators, which will see your message and (hopefully) move the post to Advanced Topics.
- SimpleSimulator
-
3 posts
PyScratch, A utility to create blocks from text.
Thanks! Yeah, I was thinking about integration with scratchblocks, especially for preview. You are probably right that the syntax is more known. I might do that. Thanks for the advice!
- RandomCocconut
-
500+ posts
PyScratch, A utility to create blocks from text.
What's the utility? Scratch made blocks to program, text language programming makes scratch just harder…
- ZZC12345
-
500+ posts
PyScratch, A utility to create blocks from text.
While you may feel more comfortable block-coding, some people (including me) feel far more flexible typing, as almost all other programming languages are text-based. What's the utility? Scratch made blocks to program, text language programming makes scratch just harder…
- Discussion Forums
- » Open Source Projects
-
» PyScratch, A utility to create blocks from text.