Merge pull request from towerofnix/scrollcompat-vm

"Implement" scroll blocks
This commit is contained in:
kchadha 2018-05-01 15:52:42 -04:00 committed by GitHub
commit 54ee628b27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 1 deletions
src/serialization

View file

@ -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: [