Discuss Scratch

gwgw99
Scratcher
41 posts

scratch to javascript converter

I am making a project that converts scratch blocks to javascript! I,m still adding scratch blocks, but here is what i have so far:

(click the picture ubove to redirect to project)

Last edited by gwgw99 (July 1, 2015 19:23:18)

Tymewalk
Scratcher
1000+ posts

scratch to javascript converter

Cool! I have a few suggestions, since JS is one of the things I'm messing around with:

For forever, you can use this:
while (1) {
// code here
}

Repeat until could be this:

while (not <conditional>) {
// code
}

Greater than ( > ) and equals ( = ) are done in the same way as less than is.

Think could just be another console.log()

I hope this helps!
gwgw99
Scratcher
41 posts

scratch to javascript converter

Tymewalk wrote:

Cool! I have a few suggestions, since JS is one of the things I'm messing around with:

For forever, you can use this:
while (1) {
// code here
}

Repeat until could be this:

while (not <conditional>) {
// code
}

Greater than ( > ) and equals ( = ) are done in the same way as less than is.

Think could just be another console.log()

I hope this helps!
Thanks! I always like suggestions!

Powered by DjangoBB