- This is part of a technical description of the file format.
Entries in an Object Table are known as Objects. There are two kinds of objects:
In Scratch, pretty much everything — the stage, a sprite, a list, a block, a variable watcher — is an object. An object has a number of attributes, in the same way that each sprite can have its own variables. Most objects have a "name" attribute. For example, the stage's attributes include a list of sprites on the stage, a dictionary of global variables, a list of backdrops, and the currently selected backdrop.
See Object-Oriented Programming for further explanation of objects.
Structure
All objects (excluding inline values) have the following structure:
classID
: one byte describing the type of object.
- ...a couple of extra bytes if it's a User-class Object, describing the version and how many fields the object has...
fields
: a fixed number of fields (Inline Values and Object References).
See Also
Files | |
Structure |
Object Table • Inline Values • Objects • Fixed-format Objects • User-class Objects |
Contents |