An example extension for Xcratch
This extension add extra-block "do it", that executes string in its input field as a sentence in Javascript and return the result.
Play Example Project to look at what you can do with "'My" extension.
<iframe src="https://xcratch.github.io/editor/player#https://ktetsuo.github.io/xcx-my-extension/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://ktetsuo.github.io/xcx-my-extension/dist/myExtension.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://ktetsuo.github.io/xcx-my-extension/
Contributions, issues and feature requests are welcome!
Feel free to check issues page.