Skip to content

Make a new category

Mistium edited this page Jul 14, 2024 · 1 revision

Make a new block list thingy here:

https://github.com/MistBolt/scratch-vm/tree/develop/src/blocks


Add stuff to cast if you are adding a new data type too

https://github.com/MistBolt/scratch-vm/blob/develop/src/util/cast.js


This is the compatibility layer, for blocks that arent run in the compiler

https://github.com/MistBolt/scratch-vm/blob/develop/src/compiler/compat-blocks.js


Add the actual compiled blocks here:

https://github.com/MistBolt/scratch-vm/blob/develop/src/compiler/irgen.js

kinda in the format shown below

Screenshot 2024-07-14 at 18 27 20


https://github.com/MistBolt/scratch-vm/blob/develop/src/compiler/jsgen.js

Add more js here

Screenshot 2024-07-14 at 18 28 43

If adding a new data type, you might want to add it here so its easier

Screenshot 2024-07-14 at 18 27 59

Clone this wiki locally