shownb / shownb.github.com

shownb.github.io
shownb.github.io
5 stars 1 forks source link

scratch 入门 #34

Open shownb opened 5 years ago

shownb commented 5 years ago

壹 通用的计算概念

贰 扩展开发

/**

/**

/**

/**

/**

mkdir Scratch
cd Scratch
git clone https://github.com/llk/scratch-gui
cd scratch-gui
npm install
npm start

http://localhost:8601/ 要应该可以看到scratch 3.0启动了。

利用 SCRATCH-VM 開發 SCRATCH 3.0 EXTENSION

再探 SCRATCH-VM 架構下的 SCRATCH 3.0 EXTENSION

Scratch 资源 Ereignisse 事件 Wenn flag angeklickt 当开始的旗被点击了 Wenn Taste [] gedrückt 当某个按键给按下了 Wenn diese Figur angeklickt Wenn das Bühnenbild zu [] wechselt Wenn Lautstärke > 10 Wenn ich Nachricht1 emfange sende Nachricht1 an alle sende Nachricht1 an alle und warte

Steuerung 控制

microbit扩展的写法 https://github.com/LLK/scratch-vm/blob/develop/src/extensions/scratch3_microbit/index.js

叁 一些tips

发布scratch3-gui到github上面去 https://github.com/LLK/scratch-gui/wiki/Publishing-to-GitHub-Pages

连接到利用Websocket 连接esp8266控制gpio https://github.com/MrYsLab/s3onegpio/blob/master/scratch-vm/src/extensions/scratch3_onegpioEsp/index.js

scratch3里面可以开发的积木类型。 https://medium.com/@hiroyuki.osaki/scratch-3-block-types-you-can-develop-and-samples-191b0d769b91