1. mBlock

The Makeblock Integrated Development Environment (IDE) is based on Scratch and is a complete, self-contained program used to program and code behavior into Makeblock robots. The Makeblock IDE is called mBlock. When you start mBlock, it should look like the following.

_images/ide.png

The Integrated Development Environment (IDE).

Note that there are 7 major components to mBlock.

mBlock Components

Component

Purpose

1

Menu

Load and save files.

2

Code Blocks

Reusable code blocks to control and add behavior to your program.

3

Script Editor

Area to build your code logic.

4

Stage

Area that shows your program in execution.

5

Device Control

Area to add and remove different types of robots.

6

Sprite Control

Area to add, update, remove and define your sprites.

7

Background Control

Area to add, update, remove and define backgrounds.

We breakdown these major components of mBlock and discuss each below.

1.2. Code blocks

As different devices or robots have different capabilities, the code blocks available will change depending on the currently selected device. The screenshot below shows the available code blocks for the Codey robot.

_images/code-blocks.png

The code blocks.

1.3. Script editor

_images/script-editor.png

The script editor area. Notice how you may toggle between Blocks and Python?

1.4. Stage

_images/stage.png

The stage.

1.5. Devices

_images/devices.png

The devices control area.

1.6. Sprites

_images/sprites.png

The sprites control area.

1.7. Backgrounds

_images/background.png

The background control area.