Skip to content

super-miner/SB3-Generator

Repository files navigation

SB3 Generator

SB3 Generator is a node library that generates .sb3 (Scratch 3) project files.

Installation:

npm i sb3-generator

Example:

Here is an example of how you can use this library to generate a simple project.

import {createCostume, createProject, createSprite, createVariable} from './sb3Generator.ts';

createProject('TestProject')
    .withSprite(
        createSprite('Stage')
            .asStage()
            .withVariable(
                createVariable('TestVariable')
                    .withValue(10)
            )
            .withCostume(
                createCostume('TestCostume.png')
            )
    )
    .build();

Docs:

You can find the documentation in the DOCS.md file.

About

📁 A node library that generates .sb3 project files.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published