Class/Instance OOP

Here are the blocks:
untitled script pic (34)
untitled script pic (35)
untitled script pic (36)
untitled script pic (37)
untitled script pic (38)

Goals:
Add checking for types
Make classes extend others

This is an example:

Reminds me of this:

Yeah, I guess.


I updated CLASS and NEW, but they’re broken rn. Pretend this example works

It works now!!!


And:


All the blocks work!
Check out the playground:

Also I decided to not do static methods. There’s another solution

Added a new block!

I’m going to add a SUPER block. This will be so hard to metaprogram…

Tip: you can use a number input for the object/class placeholders (to match the oval shape of reporters) instead of using a text input, and use basic metaprogramming to set the defaults:

untitled script pic (12)

Result:

untitled script pic (13)

That’s what I do, usually. I will fix!