The mBlock Simulator is able to simulate mBlock code for various Makeblock devices. See supported devices for a list of supported mBlock Devices.
✨ Tip: Check out embe for a more efficient way of writing mBlock code.
- Install the dependencies:
npm install - Build:
npm run build - Serve the site:
node build(HOSTandPORTcan be set using environment variables.)
- CyberPI
- MBot2
The following image shows what the simulator looks like after loading the demo.mblock file from the demo folder.
The sidebar features two sections:
- The "Targets" section displays the programs contained in the
.mblockfile. - The "Entities" section displays the active instances of the available targets.
The simulator view is located to the right of the sidebar. It contains a sprite for each entity that has physics enabled.
