Discuss Scratch

Scratch-Bytes
Scratcher
15 posts

ScratchScript — a new text based Scratch language

aspizu wrote:

If you are not using a library to parse the code, I would suggest implementing a lisp syntax.

(whenFlagClicked
(set variableName 0))
I'd love to see this too.
redspacecat
Scratcher
1000+ posts

ScratchScript — a new text based Scratch language

Scratch-Bytes wrote:

aspizu wrote:

If you are not using a library to parse the code, I would suggest implementing a lisp syntax.

(whenFlagClicked
(set variableName 0))
I'd love to see this too.
Why, what's wrong with this version?
ILOVETRAINS24100
Scratcher
43 posts

ScratchScript — a new text based Scratch language

How do you define a new block? And why not make it do scratch to scratchscript?
redspacecat
Scratcher
1000+ posts

ScratchScript — a new text based Scratch language

ILOVETRAINS24100 wrote:

How do you define a new block? And why not make it do scratch to scratchscript?
Custom blocks are not currently supported.
Scratch to scratchscript would be an entire different project since it would require writing a parser for scratch projects.
BADFELLA
Scratcher
2 posts

ScratchScript — a new text based Scratch language

We need to create a new, easy scripting language similar to Scratch, specifically for building games and applications in general. The goal is to enable users to easily create 3D games and comprehensive applications. I believe the easiest and most adaptable approach is to use AI to develop this language. For example, we could start by utilizing Claude AI code to build the language, test it, and then use Replit to refine it to achieve the desired results. This could potentially create a revamped version of Scratch that is better suited for a modern audience.
mtnif
Scratcher
1000+ posts

ScratchScript — a new text based Scratch language

the code
whenGreenFlagClicked()
sayForSecs("Hello, world!", 2)
could be ambiguous, maybe you could do
whenGreenFlagClicked {
sayForSecs("Hello, world!", 2)
}

also add an sb3 to scratchscript converter
mtnif
Scratcher
1000+ posts

ScratchScript — a new text based Scratch language

also, for custom blocks, you can do
//No inputs
function exampleBlock() {
    //code
}
//Reporter inputs
function exampleBlock((reporter: reporter1), (reporter: reporter2)) {
    //code
}
//Boolean inputs
function exampleBlock((boolean: boolean1), (boolean: boolean2)) {
    //code
}

Powered by DjangoBB