sbmake
v0.5.0
Published
A typescript interface for interacting and compiling the Scratch File Format
Readme
SBMAKE
This project serves as an interface between Terascript and Scratch, allowing Scratch files to be easily compiled. Although this is meant for Terascript, it can be implemented into your own personal project.
Documentation
Creating a new Project
const Project = new Project();
Project.title = "My Project";Creating a new Sprite
const newSprite = Project.addSprite()
newSprite.name = "Sprite"
newSprite.addCostume("Costume", path\to\image)
Adding Blocks
const onFlag = Blocks.whenflagpressed();
newSprite.addRoot(onFlag); //Create Top-Level BlockCompile Project
Project.compile(); //outputs a .sb3 file with the same name as the project title