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 --helpUsage: ssc [options] <dir> Options: -v, --version output the version number -o, --output <outputpath> specify an output project file path -h, --help display help