< Scratch File Format (1.4)(Redirected from Scratch File Format/Sprite File)
This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective. |
This article is a stub. It may be incomplete, unfinished, or have missing parts/sections. If the article can be expanded, please do so! There may be suggestions on its talk page. (July 2017) |
- This is a technical description of the file format. For sprites in general, see Sprite.
A sprite file is used to save a single sprite that can be imported into other Scratch projects. They have the extension .sprite
.
Structure
Perhaps confusingly, sprite files do not just contain a sprite object.
They actually contain a stage object encoded as an Object Table (the same as the project file contents). This is because global variables/lists need to be saved as well.
Unlike a project file, there is no preceding ScratchV02
header or info table; just the single object table for the stage.
Files | |
Structure |
Object Table • Inline Values • Objects • Fixed-format Objects • User-class Objects |
Contents |