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.
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.
-
But how to package it standalone without needing to run it on a link given by these tools Phosphorus or Sulfurous?– sçuçuCommented Nov 12, 2019 at 22:25
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.
-
This doesn't seem so nice. I have a simple dart game simulator but it doesn't work properly in the html version Commented Apr 6, 2021 at 8:41
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.