Pop Blocks is a web application used to program the PopBot robot of the MIT Media Lab Personal Robots Group.
This platform is meant to be used on a tablet with the accompanying PopBots robots. However, you can see what the blocks look like on the live website.
Pop Blocks is based off of the the MIT Media Lab LLK Group's Scratch Blocks. Scratch Blocks is based on Google's Blockly project. For a full API reference please see Google's Custom Blocks documentation.
Parts taken from Scratch Blocks documentation: First, download the source code from GitHub. As this project is quickly being updated we recommend you use git but you are more than welcome to download the code directly as well.Before running the program, you'll need to ensure that you have Google's Closure Library installed. If you run into any trouble with this step, or see the following dialog please refer to Google's Blockly documentation.
Once you have the code, point your browser at pop/index.html
and verify that blocks can be dragged around.
- Added toolbox click event -- broke
- Added play and stop controls to workspace
- Added sounds and looks categories
- Added logging of interactions with the toolbox, workspace, and flyout
- Make a new file in ./scratch-blocks-develop/popr_blocks, for example text.js
- Refer to the structure of the other files in the block to create blocks (insert example)
- In ./scratch-blocks-develop/popr_blocks/default_toolbox.xml, add a new category (insert example)
- Within the category, add blocks (insert example)
- In your index file (e.g. ./scratch-blocks-develop/pop/index.html) add the js file, test.js to the list of javascript sources
- Point your browser to your index file and confirm that the new category and blocks appear