forked from Nitro-Bolt/scratch-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
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

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

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