sb3-decoder 0.2.1

A Rust library for decoding Scratch 3.0 project files (.sb3)
Documentation
{
  "targets": [
    {
      "isStage": true,
      "name": "Stage",
      "variables": {
        "`jEk@4|i[#Fk?(8x)AV.-my variable": [
          "my variable",
          0
        ]
      },
      "lists": {
        "BxqRFYBnc|yT5gUeHa86": [
          "asdf",
          [
            2
          ]
        ]
      },
      "broadcasts": {
        "`i.fgKENM_}bxFAS2$#{": "message1"
      },
      "blocks": {},
      "comments": {},
      "currentCostume": 0,
      "costumes": [
        {
          "name": "backdrop1",
          "dataFormat": "svg",
          "assetId": "cd21514d0531fdffb22204e0ec5ed84a",
          "md5ext": "cd21514d0531fdffb22204e0ec5ed84a.svg",
          "rotationCenterX": 240,
          "rotationCenterY": 180
        }
      ],
      "sounds": [],
      "volume": 100,
      "layerOrder": 0,
      "tempo": 60,
      "videoTransparency": 50,
      "videoState": "on",
      "textToSpeechLanguage": null
    },
    {
      "isStage": false,
      "name": "Sprite1",
      "variables": {},
      "lists": {},
      "broadcasts": {},
      "blocks": {
        "d": {
          "opcode": "procedures_definition",
          "next": "a",
          "parent": null,
          "inputs": {
            "custom_block": [
              1,
              "b"
            ]
          },
          "fields": {},
          "shadow": false,
          "topLevel": true,
          "x": 243,
          "y": 271
        },
        "b": {
          "opcode": "procedures_prototype",
          "next": null,
          "parent": "d",
          "inputs": {
            "Nk@CLK%naJCc6bdwEKY]": [
              1,
              "e"
            ],
            "Dv%_HLq(]#yp3,pRX-#6": [
              1,
              "f"
            ]
          },
          "fields": {},
          "shadow": true,
          "topLevel": false,
          "mutation": {
            "tagName": "mutation",
            "children": [],
            "proccode": "testblock %s %b",
            "argumentids": "[\"Nk@CLK%naJCc6bdwEKY]\",\"Dv%_HLq(]#yp3,pRX-#6\"]",
            "argumentnames": "[\"number or text\",\"boolean\"]",
            "argumentdefaults": "[\"\",\"false\"]",
            "warp": "true"
          }
        },
        "e": {
          "opcode": "argument_reporter_string_number",
          "next": null,
          "parent": "b",
          "inputs": {},
          "fields": {
            "VALUE": [
              "number or text",
              null
            ]
          },
          "shadow": true,
          "topLevel": false
        },
        "f": {
          "opcode": "argument_reporter_boolean",
          "next": null,
          "parent": "b",
          "inputs": {},
          "fields": {
            "VALUE": [
              "boolean",
              null
            ]
          },
          "shadow": true,
          "topLevel": false
        },
        "a": {
          "opcode": "looks_sayforsecs",
          "next": "c",
          "parent": "d",
          "inputs": {
            "MESSAGE": [
              3,
              "g",
              [
                10,
                "Hello!"
              ]
            ],
            "SECS": [
              1,
              [
                4,
                "2"
              ]
            ]
          },
          "fields": {},
          "shadow": false,
          "topLevel": false
        },
        "c": {
          "opcode": "looks_sayforsecs",
          "next": "h",
          "parent": "a",
          "inputs": {
            "MESSAGE": [
              3,
              "i",
              [
                10,
                "Hello!"
              ]
            ],
            "SECS": [
              1,
              [
                4,
                "2"
              ]
            ]
          },
          "fields": {},
          "shadow": false,
          "topLevel": false
        },
        "g": {
          "opcode": "argument_reporter_string_number",
          "next": null,
          "parent": "a",
          "inputs": {},
          "fields": {
            "VALUE": [
              "number or text",
              null
            ]
          },
          "shadow": false,
          "topLevel": false
        },
        "i": {
          "opcode": "argument_reporter_boolean",
          "next": null,
          "parent": "c",
          "inputs": {},
          "fields": {
            "VALUE": [
              "boolean",
              null
            ]
          },
          "shadow": false,
          "topLevel": false
        },
        "j": {
          "opcode": "procedures_call",
          "next": null,
          "parent": null,
          "inputs": {
            "Nk@CLK%naJCc6bdwEKY]": [
              1,
              [
                10,
                "10"
              ]
            ],
            "Dv%_HLq(]#yp3,pRX-#6": [
              2,
              "k"
            ]
          },
          "fields": {},
          "shadow": false,
          "topLevel": true,
          "x": 449,
          "y": 526,
          "mutation": {
            "tagName": "mutation",
            "children": [],
            "proccode": "testblock %s %b",
            "argumentids": "[\"Nk@CLK%naJCc6bdwEKY]\",\"Dv%_HLq(]#yp3,pRX-#6\"]",
            "warp": "true"
          }
        },
        "k": {
          "opcode": "operator_not",
          "next": null,
          "parent": "j",
          "inputs": {},
          "fields": {},
          "shadow": false,
          "topLevel": false
        },
        "h": {
          "opcode": "control_stop",
          "next": null,
          "parent": "c",
          "inputs": {},
          "fields": {
            "STOP_OPTION": [
              "all",
              null
            ]
          },
          "shadow": false,
          "topLevel": false,
          "mutation": {
            "tagName": "mutation",
            "children": [],
            "hasnext": "false"
          }
        }
      },
      "comments": {},
      "currentCostume": 0,
      "costumes": [
        {
          "name": "costume1",
          "bitmapResolution": 1,
          "dataFormat": "svg",
          "assetId": "927d672925e7b99f7813735c484c6922",
          "md5ext": "927d672925e7b99f7813735c484c6922.svg",
          "rotationCenterX": 30.74937882782359,
          "rotationCenterY": 58.864768144346826
        }
      ],
      "sounds": [],
      "volume": 100,
      "layerOrder": 1,
      "visible": true,
      "x": 0,
      "y": 0,
      "size": 100,
      "direction": 90,
      "draggable": false,
      "rotationStyle": "all around"
    }
  ],
  "monitors": [
    {
      "id": "BxqRFYBnc|yT5gUeHa86",
      "mode": "list",
      "opcode": "data_listcontents",
      "params": {
        "LIST": "asdf"
      },
      "spriteName": null,
      "value": [],
      "width": 0,
      "height": 0,
      "x": 5,
      "y": 5,
      "visible": false
    },
    {
      "id": "`jEk@4|i[#Fk?(8x)AV.-my variable",
      "mode": "default",
      "opcode": "data_variable",
      "params": {
        "VARIABLE": "my variable"
      },
      "spriteName": null,
      "value": 0,
      "width": 0,
      "height": 0,
      "x": 5,
      "y": 5,
      "visible": false,
      "sliderMin": 0,
      "sliderMax": 100,
      "isDiscrete": true
    }
  ],
  "extensions": [],
  "meta": {
    "semver": "3.0.0",
    "vm": "0.2.0",
    "agent": "",
    "platform": {
      "name": "TurboWarp",
      "url": "https://turbowarp.org/"
    }
  }
}