Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Translate scratch script to HTML and javascript [closed]

Tags:

mit-scratch

I am wondering if there already exists a translator to export a scratch project to HTML and javascript or to export a project so it can be played on a tablet.

like image 715
Henrique Avatar asked Nov 30 '16 11:11

Henrique


People also ask

Can you turn scratch into Javascript?

If you've enjoyed coding in Scratch, but find yourself bumping up against its limitations and would like to take the next step in programming Javascript, then S2JS is for you. You'll be able to write Scratch-like games that run anywhere, including on your friends smartphones.


3 Answers

As Scimonster mentioned in a comment, Phosphorus (written by Nathan) will run your projects on an HTML5 Canvas and let you export the project to other places.

However, Sulfurous is an improvement to the Phosphorus player and might run projects more accurately to how the Scratch Player would.

Note that both players have issues and might not replicate the projects perfectly.

like image 184
Max Avatar answered Nov 17 '22 13:11

Max


Yes, you can use Scratch HTMLifier by SheepTester, which generates a HTML file that runs the project. It uses the official Scratch VM so everything should work the same as in Scratch. Note that variables and ask prompts will look different.

like image 28
Maximouse Avatar answered Nov 17 '22 12:11

Maximouse


You don't need Phosphorus or Sulpherous now, since Scratch 3.0 (the current version) allows you to directly play on a tablet from the Scratch website. This is because Scratch 3.0 doesn't need Adobe Flash.

like image 34
VFDan Avatar answered Nov 17 '22 14:11

VFDan