kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #106 from Simon-Mong/patch-27
replace 'glide' with 'reportRandomPosition'pull/108/head
commit
399acff55a
|
@ -1463,7 +1463,14 @@ SpriteMorph.prototype.initBlocks = function () {
|
|||
spec: 'text length of %s with size %n',
|
||||
defaults: ["hello", 21]
|
||||
};
|
||||
|
||||
this.blocks.reportRandomPosition =
|
||||
{
|
||||
only: SpriteMorph,
|
||||
type: 'reporter',
|
||||
category: 'motion',
|
||||
spec: 'random position',
|
||||
};
|
||||
|
||||
// pen blocks
|
||||
|
||||
this.blocks.isPenDown =
|
||||
|
@ -1820,7 +1827,7 @@ SpriteMorph.prototype.blockTemplates = function (category) {
|
|||
//blocks.push(block('gotoXYIn'));
|
||||
//blocks.push(block('gotoXYBy'));
|
||||
blocks.push(block('doGotoObject'));
|
||||
blocks.push(block('doGlide'));
|
||||
blocks.push(block('reportRandomPosition'));
|
||||
blocks.push('-');
|
||||
blocks.push(block('changeXPosition'));
|
||||
blocks.push(block('setXPosition'));
|
||||
|
|
Ładowanie…
Reference in New Issue