.sb file

An .sb file is the file format used to store projects created in the Scratch programming language editor up to version 1.4.[1] sb is no longer used in the current version of Scratch and was replaced by the .sb2 file in Scratch 2.0.

File Structure

The .sb file is divided into four sections.

header

The 10-byte header contains the ASCII string 'ScratchV02' in versions higher than 1.2, and contains the string 'ScratchV01' in versions 1.2 and below.

infoSize

Encodes the length of the project's infoObjects. A four-byte long, 32-bit, big-Endian integer.

infoObjects

A dictionary-format data section. It contains the following keys:

contents

A table with the Stage as the root. All objects in the program are stored here as references.

See Also

References

  1. "Scratch Wiki - .sb". 4 October 2015. Retrieved 7 November 2015.
This article is issued from Wikipedia - version of the Thursday, February 11, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.