Setting up Scratch Blocks is a little different from the other components since it requires Python, Java and Google's closure library to compile and must be re-compiled every time a change is made. You should see your mod running! The editor will automatically reload whenever any changes are made to your mod if the terminal is left open. The development version of the Scratch 3.0 editorĬlone and install the dependencies for scratch-gui.įrom the Scratch GUI folder, run npm startĪnd open localhost:8601 in a browser. ![]() To switch to the component's folder and then npm install The command will take some time to complete.Īfter the command completes, run cd scratch-* This will clone (download) the source code for the that component into into a new folder with the same name. To the end of the cloning command since the Git history contains large files. When cloning scratch-gui, it is recommended to add -depth=1 Replacing the asterisk with the component's name, for example, scratch-gui. Open a terminal from your mod's folder, run the command git clone *.git Before making any changes, the source code for at least Scratch GUI will need to be downloaded its dependencies will need to be installed. Most mods will only require modifications to Scratch GUI, Scratch Blocks, and Scratch VM.Ĭreate a new folder for your mod. For example, your mod may look like this: Every part is a different repository on GitHub.Īs you add functionality to your mod, your mod's folder will contain a sub-folder for each component. Scratch 3.0 is designed in a modular way. How Scratch 3.0 is organized Main article: Scratch Source Code#Scratch 3.0 Īdditionally you should have some knowledge of the following:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |