scratch-script

0.1.10 • Public • Published

ScratchScriptKit

Licence Github Github Package Version Package Version NPM

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

/scratch-script/

    Package Sidebar

    Install

    npm i scratch-script

    Weekly Downloads

    0

    Version

    0.1.10

    License

    AGPL-3.0-or-later

    Unpacked Size

    2.57 MB

    Total Files

    41

    Last publish

    Collaborators

    • alexcui
    • steve-xmh