Step up to JavaScript

The block program is useful, but if you want to do something more advanced, You should use JavaScript to program it.
For example, you can use deeper programming for example external Dropbox, Twitter, etc.
This is a case where you are creating a game that draws 3D on the screen.
They can also be created using a combination of HTML and JavaScript.

The obniz block program is actually converted to HTML/javascript and executed.

So,If you modify the HTML/javascript created from the block program you created, you can continue to program more detailed movements in JavaScript.


For example, if you create this block program and look at its code

You can check the HTML and javascript by clicking on the file name in the upper left corner of the block program editor and pressing "View Code".
Click on the file name in the upper left corner of the block program editor and click on "View Code" to see the HTML and javascript.

If you do so,
You will see HTML like this.

The program is slightly different depending on the version of the block editor.

 <!-- HTML Example -->

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src=""></script>
    <link rel="stylesheet" href="" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
    <script src="" crossorigin="anonymous"></script>
    <script src=""></script>
    <script src=""></script>
    <script src=""></script>
    <script src=""></script>
    <script src=""></script>
    <script src=""> </script>
    <script src=""> </script>
Block Program running...
<div id="OBNIZ_OUTPUT"></div><br/>

(async function(){
  var obniz, button, dcmotor;

  obniz = new Obniz('8506-3053');
  await obniz.connectWait();
  button = new ObnizUI.Button('text');
  dcmotor = obniz.wired("DCMotor",{"forward":0, "back":1});
  while (true) {
  await ObnizUI.Util.wait(0);
    if (button.isTouching()) {
    } else {