Discuss Scratch

cchang6
New Scratcher
6 posts

Convert Scratch to Code

Hello! I am taking the AP exam for Computer Science Principles, and I used Scratch to program my Create Performance Task.

I need to include an attachment of all my code. Is there a way I can convert Scratch into readable code? If not, I will most likely have to screenshot each individual sprite and their scripts which I feel would take a long time.

Thanks!
Sheep_maker
Scratcher
1000+ posts

Convert Scratch to Code

You can get the project.json (which holds the block and sprite data) by renaming the .sb3 to a .zip, then unzipping it.
badatprogrammingibe
Scratcher
500+ posts

Convert Scratch to Code

I recommend just taking a screenshot of all your code.
If you are using scratch 1.4, there is a handy “save picture of scripts” button when you right click.
herohamp
Scratcher
1000+ posts

Convert Scratch to Code

Use Tosh. The AP Board expects it to be a long thing of code. How did you fit in proper abstractions that the AP Board would approve of? Im just doing mine on p5js
cchang6
New Scratcher
6 posts

Convert Scratch to Code

@herohamp

Thanks for the recommendation. However, is there a way for me to upload a game I already made on Scratch into Tosh and have it convert all the code automatically?
cchang6
New Scratcher
6 posts

Convert Scratch to Code

@sheep_maker

Thanks; I tried that, but it just gave me a super long list of code that really isn't readable. Am I doing it wrong?
herohamp
Scratcher
1000+ posts

Convert Scratch to Code

cchang6 wrote:

@herohamp

Thanks for the recommendation. However, is there a way for me to upload a game I already made on Scratch into Tosh and have it convert all the code automatically?
yes download as sb2, go to https://tosh.blob.codes/app/, then click open
AlphaZ3ro
Scratcher
100+ posts

Convert Scratch to Code

I'm not quite sure how to do it… on 2.0 there was a button you could click on the project page that gave you the code, but not anymore becuz it's 3.0
AlphaZ3ro
Scratcher
100+ posts

Convert Scratch to Code

herohamp wrote:

cchang6 wrote:

@herohamp

Thanks for the recommendation. However, is there a way for me to upload a game I already made on Scratch into Tosh and have it convert all the code automatically?
yes download as sb2, go to https://tosh.blob.codes/app/, then click open
Yeah, sounds about right.

Powered by DjangoBB