<!doctype html>
<html>
  <body>
    <script src="game-field-core.js"></script>
    <div id="container"></div>
    <script>
      GameField.resetCanvas('container', 20, 20);
      GameField.eachTick = function() {
        var click = GameField.checkClick();
        if (click) {
          GameField.setPixel(click.x, click.y, GameField.randomColor());
        }
      };
    </script>
  </body>
</html>

<!doctype html>
<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
  </head>
  <body>
    <script src="game-field-core.js"></script>
    <div id="container"></div>
    <script>
      GameField.resetCanvas('container', 20, 20);
      GameField.eachTick = function() {
        var click = GameField.checkClick();
        if (click) {
          GameField.setPixel(click.x, click.y, GameField.randomColor());
        }
      };
    </script>
  </body>
</html>

Make Game Field core example mobile friendly
Make Game Field core example mobile friendly
