summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-08-10 20:04:52 +0200
committerGubolin <gubolin@fantasymail.de>2014-08-10 20:04:52 +0200
commit4b71fef0c1e29c89f06389b6db81cd578d028f12 (patch)
tree210e8a83543e39e6846812a24095e4f9768bf862 /objects.js
parent0333925e916acc47c25cdcfec0c3be3d695a825f (diff)
downloadsnap-4b71fef0c1e29c89f06389b6db81cd578d028f12.tar.gz
snap-4b71fef0c1e29c89f06389b6db81cd578d028f12.zip
add camera streaming blocks (fix #460)
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/objects.js b/objects.js
index fbb9e84..06bab19 100644
--- a/objects.js
+++ b/objects.js
@@ -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') {