Merge pull request #106 from Simon-Mong/patch-27

replace 'glide' with 'reportRandomPosition'
pull/108/head
Michael Aschauer 2021-09-16 10:53:44 +02:00 zatwierdzone przez GitHub
commit 399acff55a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -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'));