mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-22 22:12:28 -05:00
Update "anatomy of a block" README for new structure
This commit is contained in:
parent
7732409102
commit
c8e050494c
1 changed files with 24 additions and 26 deletions
36
README.md
36
README.md
|
@ -52,33 +52,31 @@ The Virtual Machine constructs and maintains the state of an [Abstract Syntax Tr
|
|||
#### Anatomy of a Block
|
||||
```json
|
||||
{
|
||||
"id": "^1r~63Gdl7;Dh?I*OP3_",
|
||||
"opcode": "wedo_motorclockwise",
|
||||
"next": null,
|
||||
"fields": {
|
||||
"7AJZR#NA;m*b}R]pdq63": {
|
||||
"id": "7AJZR#NA;m*b}R]pdq63",
|
||||
"opcode": "control_wait",
|
||||
"inputs": {
|
||||
"DURATION": {
|
||||
"name": "DURATION",
|
||||
"value": null,
|
||||
"blocks": {
|
||||
"1?P=eV(OiDY3vMk!24Ip": {
|
||||
"id": "1?P=eV(OiDY3vMk!24Ip",
|
||||
"opcode": "math_number",
|
||||
"block": ",xA8/S!Z6+kR,9dph.rO"
|
||||
}
|
||||
},
|
||||
"fields": {},
|
||||
"next": null,
|
||||
"topLevel": true
|
||||
},
|
||||
",xA8/S!Z6+kR,9dph.rO": {
|
||||
"id": ",xA8/S!Z6+kR,9dph.rO",
|
||||
"opcode": "math_number",
|
||||
"inputs": {},
|
||||
"fields": {
|
||||
"NUM": {
|
||||
"name": "NUM",
|
||||
"value": "10",
|
||||
"blocks": null
|
||||
}
|
||||
}
|
||||
}
|
||||
"value": "1"
|
||||
}
|
||||
},
|
||||
"SUBSTACK": {
|
||||
"name": "SUBSTACK",
|
||||
"value": "@1ln(HsUO4!]*2*%BrE|",
|
||||
"blocks": null
|
||||
}
|
||||
"next": null,
|
||||
"topLevel": false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue