mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-05 10:03:56 -04:00
Merge pull request #1099 from towerofnix/scrollcompat-vm
"Implement" scroll blocks
This commit is contained in:
commit
54ee628b27
2 changed files with 46 additions and 1 deletions
src/serialization
|
@ -206,6 +206,45 @@ const specMap = {
|
|||
argMap: [
|
||||
]
|
||||
},
|
||||
'scrollRight': {
|
||||
opcode: 'motion_scroll_right',
|
||||
argMap: [
|
||||
{
|
||||
type: 'input',
|
||||
inputOp: 'math_number',
|
||||
inputName: 'DISTANCE'
|
||||
}
|
||||
]
|
||||
},
|
||||
'scrollUp': {
|
||||
opcode: 'motion_scroll_up',
|
||||
argMap: [
|
||||
{
|
||||
type: 'input',
|
||||
inputOp: 'math_number',
|
||||
inputName: 'DISTANCE'
|
||||
}
|
||||
]
|
||||
},
|
||||
'scrollAlign': {
|
||||
opcode: 'motion_align_scene',
|
||||
argMap: [
|
||||
{
|
||||
type: 'field',
|
||||
fieldName: 'ALIGNMENT'
|
||||
}
|
||||
]
|
||||
},
|
||||
'xScroll': {
|
||||
opcode: 'motion_xscroll',
|
||||
argMap: [
|
||||
]
|
||||
},
|
||||
'yScroll': {
|
||||
opcode: 'motion_yscroll',
|
||||
argMap: [
|
||||
]
|
||||
},
|
||||
'say:duration:elapsed:from:': {
|
||||
opcode: 'looks_sayforsecs',
|
||||
argMap: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue