From 5bd357806fb0f3d0a9556dfb718f53bfb6af4fbb Mon Sep 17 00:00:00 2001 From: Gubolin Date: Sat, 6 Sep 2014 15:52:50 +0200 Subject: add vibrate block --- objects.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'objects.js') diff --git a/objects.js b/objects.js index fbb9e84..9dadfb3 100644 --- a/objects.js +++ b/objects.js @@ -878,6 +878,11 @@ SpriteMorph.prototype.initBlocks = function () { category: 'sensing', spec: 'current %dates' }, + doVibrate: { + type: 'command', + category: 'sensing', + spec: 'vibrate %n seconds' + }, // Operators reifyScript: { @@ -4991,6 +4996,8 @@ StageMorph.prototype.blockTemplates = function (category) { blocks.push(block('doSetFastTracking')); blocks.push('-'); blocks.push(block('reportDate')); + blocks.push('-'); + blocks.push(block('doVibrate')); // for debugging: /////////////// -- cgit v1.3.1