Package Exports
- scratch-script
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (scratch-script) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ScratchScriptKit
Code feature is in alpha statement, . But others (sprites or stage definition) are finished.
A toolchain to make scratch project without drag any thing.
ScratchScript Example:
var direction = 0;
when events.flagClicked() {
looks.sayFor('Hello ScratchScript!', 3);
forever {
direction = 1;
repeat (10) {
motion.changeY(5 * direction);
}
if (direction == 1) {
direction = -1;
} else {
direction = 1;
}
}
}
Chinese 中文 English
API Refenerce
English document is in progress (:P)
Installation
> npm i scratch-script -g
Development
We recommend you to use Yarn to setup the environment, npm also works.
> yarn
> yarn start
This will start webpack dev server, then you can access http://localhost:8040/playground/ to the playground (only for debug).
Usage
> ssc --help
Usage: ssc [options] <dir>
Options:
-v, --version output the version number
-o, --output <outputpath> specify an output project file path
-h, --help display help for command