mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-26 06:10:26 -04:00
Merge pull request #1032 from towerofnix/while-vm
Implement "while" block
This commit is contained in:
commit
b794e19c31
3 changed files with 45 additions and 1 deletions
src/serialization
|
@ -799,6 +799,19 @@ const specMap = {
|
|||
}
|
||||
]
|
||||
},
|
||||
'doWhile': {
|
||||
opcode: 'control_while',
|
||||
argMap: [
|
||||
{
|
||||
type: 'input',
|
||||
inputName: 'CONDITION'
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
inputName: 'SUBSTACK'
|
||||
}
|
||||
]
|
||||
},
|
||||
'doForLoop': {
|
||||
opcode: 'control_for_each',
|
||||
argMap: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue