diff options
| author | Gubolin <gubolin@fantasymail.de> | 2014-08-10 20:04:52 +0200 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2014-08-10 20:04:52 +0200 |
| commit | 4b71fef0c1e29c89f06389b6db81cd578d028f12 (patch) | |
| tree | 210e8a83543e39e6846812a24095e4f9768bf862 /objects.js | |
| parent | 0333925e916acc47c25cdcfec0c3be3d695a825f (diff) | |
| download | snap-4b71fef0c1e29c89f06389b6db81cd578d028f12.tar.gz snap-4b71fef0c1e29c89f06389b6db81cd578d028f12.zip | |
add camera streaming blocks (fix #460)
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -569,6 +569,16 @@ SpriteMorph.prototype.initBlocks = function () { category: 'pen', spec: 'stamp' }, + doStreamCamera: { + type: 'command', + category: 'pen', + spec: 'start streaming from the camera' + }, + doStopCamera: { + type: 'command', + category: 'pen', + spec: 'stop streaming from the camera' + }, // Control receiveGo: { @@ -4911,6 +4921,9 @@ StageMorph.prototype.blockTemplates = function (category) { } else if (cat === 'pen') { blocks.push(block('clear')); + blocks.push('-'); + blocks.push(block('doStreamCamera')); + blocks.push(block('doStopCamera')); } else if (cat === 'control') { |
