replace 'glide' with 'reportRandomPosition'

replace 'glide' with 'reportRandomPosition'
pull/106/head
Simon-Mong 2021-09-08 19:23:27 +08:00 zatwierdzone przez GitHub
rodzic 3058111f9a
commit 32ba70b59c
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

@ -1461,7 +1461,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 =
@ -1818,7 +1825,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'));