scratch-script
v0.1.10
Published
[Alpha] An easy language to make huge scratch code more easily. ✨
Downloads
13
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