Return to Video

Course 2 - maze intro

  • 0:00 - 0:05
    Usually programming is all in text but we'll
    use Blockly which uses visual blocks that
  • 0:05 - 0:10
    you drag and drop to write programs. Under
    the hood, you're still creating code. To start
  • 0:10 - 0:14
    off, we're going to build code for a program
    that will help this Angry Bird move through
  • 0:14 - 0:19
    a maze to get to the evil pigs that stole
    its eggs. Blockly is split into three main
  • 0:19 - 0:25
    parts. On the left is the bird's maze, where
    your program will run. The instructions for
  • 0:25 - 0:31
    each level are written below the maze. This
    middle area is the toolbox and each of these
  • 0:31 - 0:36
    blocks is a command that the bird can understand.
    The white space on the right is called the
  • 0:36 - 0:42
    workspace and this is where we'll build our
    program. If I drag the move block to our work
  • 0:42 - 0:48
    space and press "run", what happens? The bird
    moves forward one box on the grid. And what
  • 0:48 - 0:53
    if I want the bird to do something after it
    moves forward one box? I can add another block
  • 0:53 - 0:58
    to our program. I'm going to choose the "turn
    right" block and I'll drag it under my move
  • 0:58 - 1:04
    block until the yellow arrow appears. Then
    I'll drop it and the two blocks will snap
  • 1:04 - 1:09
    together. When I press "run" again, the bird
    will perform the commands that are stacked
  • 1:09 - 1:13
    from top to bottom on our work space. If you
    ever want to delete a block, just remove it
  • 1:13 - 1:18
    from the stack and drag it to the trash can.
    After you've hit run, you can always hit the
  • 1:18 - 1:23
    reset button to get the bird back to the start.
    Now let's get those pigs!
Title:
Course 2 - maze intro
Video Language:
English
Duration:
01:24

English subtitles

Revisions