< Return to Video

Star Wars with Blockly - Hour of Code: Introduction

  • 0:01 - 0:04
    Welcome to the Hour of Code...
  • 0:14 - 0:20
    Hi I'm Kathleen Kennedy and I'm the producer
    of Star Wars: The Force Awakens. Today you'll
  • 0:20 - 0:28
    be working with one of our stars, BB-8. BB-8
    is a spherical droid. Everything he does and
  • 0:28 - 0:35
    every movement that he makes is controlled
    by computer software. Computer science impacts
  • 0:35 - 0:41
    every industry, from marketing to health care
    to film. In fact, hundreds of computer engineers
  • 0:41 - 0:45
    worked together to make a film like The Force
    Awakens.
  • 0:45 - 0:52
    Hi, I'm Rachel Rose. I'm a senior R&D engineer
    at ILM and I lead the animation and creature
  • 0:52 - 0:57
    development team. In The Force Awakens, I'm
    responsible for helping the artist develop
  • 0:57 - 1:03
    rigs, which are the parts of the character
    that move that allow the character to look
  • 1:03 - 1:09
    very believable in a galaxy far, far away.
    In the next hour, we're going to build our
  • 1:09 - 1:14
    own Star Wars game that will teach you the
    basic concepts of programming. Usually programming
  • 1:14 - 1:17
    is all text but we're going to use blocks
    here so we can drag and drop to write the
  • 1:17 - 1:23
    programs. To start off, we're going to work
    with Rey to program BB-8 to walk to collect
  • 1:23 - 1:28
    all of the scrap parts.
    Your screen is split into three parts. On
  • 1:28 - 1:32
    the left is the Star Wars game space where
    code will run. The instructions for each level
  • 1:32 - 1:37
    are written below the game space. This middle
    area is the toolbox and each of these blocks
  • 1:37 - 1:42
    is a command that BB-8 can understand. The
    white space on the right is called the work
  • 1:42 - 1:45
    space and this is where we're going to build
    our program.
  • 1:45 - 1:52
    If I drag the moveLeft block to our workspace,
    what happens? BB-8 moves left one block on
  • 1:52 - 1:57
    the grid. And what if I want BB-8 to do something
    after the move left block? I can add another
  • 1:57 - 2:02
    block to our program. I'm going to choose
    the moveUp block and I'll drag it under my
  • 2:02 - 2:06
    moveLeft block until the highlight appears.
    Then I'll drop it and the two blocks will
  • 2:06 - 2:11
    snap together.
    When I press run again, BB-8 will perform
  • 2:11 - 2:16
    the commands that are stacked top to bottom
    on our workspace. If you ever want to delete
  • 2:16 - 2:21
    a block, just remove it from the stack and
    drag it back into the toolbox. After you hit
  • 2:21 - 2:28
    run, you can always hit the reset button to
    get BB-8 back to the start. Now let's get rolling!
Title:
Star Wars with Blockly - Hour of Code: Introduction
Description:

Start learning at http://code.org/

Stay in touch with us!
• on Twitter https://twitter.com/codeorg
• on Facebook https://www.facebook.com/Code.org
• on Instagram https://instagram.com/codeorg
• on Tumblr https://blog.code.org
• on LinkedIn https://www.linkedin.com/company/code-org
• on Google+ https://google.com/+codeorg

more » « less
Video Language:
English
Team:
Code.org
Project:
Hour of Code
Duration:
02:40

English subtitles

Revisions