Scratch-gui: I want to build a standalone sb3 player.

Created on 20 Jul 2018  路  10Comments  路  Source: LLK/scratch-gui

Since I found this project could export sb3 file and load sb3 file and play it in the web browser, I want to know if I could serve sb3 file on my own website?
If I could, then I need to dig into the source code.
Sorry to post here, since I could not post on https://scratch.mit.edu/discuss.
Best regards.

question

All 10 comments

Try https://llk.github.io/scratch-gui/develop/player#PROJECT-ID

@kyleplo Could you please tell me where is the source code of this page. I thought I could learn from it and contribute some codes. : )
Thanks.

https://github.com/LLK/scratch-gui/blob/gh-pages/develop/player.html

Where could I get the #PROJECT-ID? Not found any docs about this branch(gh-pages)~ How could I build the player.html and player.js ... I need to learn more~~ Thanks.

wow. I found the player.html is in the build directory. : )

I don't know much about it either, but project ids come from the Scratch website. The id is the number in the URL. For example, in _scratch.mit.edu/projects/236165720/_, 236165720 is the id.

Also, currently loading projects by project id is broken, according to #2580. For now, use https://rschamp.github.io/scratch-gui/bugfix/player-loader/player.html#PROJECT-ID

@kyleplo Wow. project 236165720 is a 2.0 project, and we could load 2.0 project in scratch 3.0, you did the 2 to 3 transformation in the backend, am I right?

@wufeng87 2.0 to 3.0 conversion is done automatically by the Scratch 3.0 editor (really the VM), so most 2.0 projects should work in 3.0 without any extra effort from the project creator.

any way to load sb3 file direct ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidaylaian picture davidaylaian  路  4Comments

thisandagain picture thisandagain  路  4Comments

kyleplo picture kyleplo  路  3Comments

rschamp picture rschamp  路  3Comments

cyx2015s picture cyx2015s  路  4Comments