mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-28 23:30:22 -04:00
Merge pull request #1033 from towerofnix/counter-vm
Implement counter blocks
This commit is contained in:
commit
d177f4cd0c
3 changed files with 54 additions and 1 deletions
src/serialization
|
@ -859,6 +859,21 @@ const specMap = {
|
|||
argMap: [
|
||||
]
|
||||
},
|
||||
'COUNT': {
|
||||
opcode: 'control_get_counter',
|
||||
argMap: [
|
||||
]
|
||||
},
|
||||
'INCR_COUNT': {
|
||||
opcode: 'control_incr_counter',
|
||||
argMap: [
|
||||
]
|
||||
},
|
||||
'CLR_COUNT': {
|
||||
opcode: 'control_clear_counter',
|
||||
argMap: [
|
||||
]
|
||||
},
|
||||
'touching:': {
|
||||
opcode: 'sensing_touchingobject',
|
||||
argMap: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue