Scratch3 architecture structure description

The overall project structure of Scratch3.0 is relatively huge. There will be confusion at the beginning of different secondary developments. You need to understand the overall framework first, and you can modify it under the specified source code as needed. The general structure is as follows :

  1. scratch-gui: is based onReact composes the entire page

   Customization tips: there are Customized under this library

  2. scratch-blocks: code block part, creating and generating block area and drag effect area

   Customization tips: Customized building blocks are required under this library span> 

3.scratch-vm: virtual machine, manage status and execute business logic, front-endGUIstate and logic part processing

   Customization tips: need to customize the extension and build under this library

4.scratch-l10n : Multilingual environment, simply describe that all translations are in this library

   < /span>Customization tips: after making changes to the interface and building blocks, you need to add multiple languages ​​in this library< /span>

 5.scratch-render< /span>: stage rendering, based on the appearance of the stage areaWebGL processor

6.scratch-storage: work storage Load

Interface description:

share picture

Scratch3 still In the official repair stage, there are relatively few secondary developments and even official instructions. For the pioneers of secondary development, they will encounter various problems in the process of use and development!

Like-minded people are welcome to communicate with each other!

QQ group: 452783077-Scratch3.0 secondary development exchange group

Personal QQ: 438759715

Leave a Comment

Your email address will not be published.