An example extension for Xcratch
This extension adds extra-block "My Blocks", that plays different sounds by adjusting the type, frequency and duration. This extension is an example implementation in Typescript.
Play Example Project to look at what you can do with "My Blocks" extension.
<iframe src="https://xcratch.github.io/editor/player#https://naoji3x.github.io/xcx-my-blocks/projects/example.sb3" width="540px" height="460px"></iframe>This extension can be used with other extension in Xcratch.
- Open Xcratch Editor
- Click 'Add Extension' button
- Select 'Extension Loader' extension
- Type the module URL in the input field
https://naoji3x.github.io/xcx-my-blocks/dist/myBlocks.mjs
Run register script to install this extension on the local Xcratch for testing.
npm run register
Run build script to bundle this extension into a module file which could be loaded on Xcratch.
npm run build
Open this page from https://naoji3x.github.io/xcx-my-blocks/
Contributions, issues and feature requests are welcome!
Feel free to check issues page.