Scratch 1.4 File Format
Dan Tobias (Talk | contribs) |
Dan Tobias (Talk | contribs) |
||
(3 intermediate revisions by one user not shown) | |||
Line 15: | Line 15: | ||
== Documentation == | == Documentation == | ||
− | * [http://wiki.scratch.mit.edu/wiki/ | + | * [http://wiki.scratch.mit.edu/wiki/Scratch_File_Format_%281.4%29 Scratch 1.4 File Format] |
== Other links == | == Other links == | ||
* [http://scratch.mit.edu/ Official Scratch site] | * [http://scratch.mit.edu/ Official Scratch site] | ||
+ | |||
+ | [[Category:MIT]] |
Latest revision as of 21:33, 18 September 2019
The Scratch 1.4 File Format saves projects in version 1.4 of the Scratch programming language, a language designed to teach programming to young children. Since the program code consists of graphical tiles rather than text-based source code, a binary format was used to save it, along with the associated objects which form part of a program project.
Scratch projects are stored in files with a .sb extension. They start with a 10-byte header containing the ASCII characters ScratchV02. Multi-byte numeric values within the file are stored in big-endian fashion.
A sprite file, with the extension .sprite, stores a sprite along with related variables and lists, in a format similar to the project file but without the header at the start.
Detailed documentation can be found in the Scratch wiki.
The Scratch 2.0 File Format switched to the use of ZIP-compressed JSON.