Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SayStuff {
- getInfo() {
- return {
- id: "SayStuff",
- name: "Say Stuff",
- blocks: [
- {
- opcode: "getPi",
- blockType: "reporter",
- text: "pi"
- }
- ]
- };
- }
- getPi() {
- return Math.PI;
- }
- }
- Scratch.extensions.register(new SayStuff());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement