< Return to Video

Variables in Play Lab

  • 0:04 - 0:10
    A variable is a container that you can store
    a value in. When you use that variable in
  • 0:10 - 0:16
    an algorithm, it opens up the container and
    looks at the value inside. This lets you write
  • 0:16 - 0:21
    smarter algorithms that behave differently
    depending on the value stored in the variable.
  • 0:21 - 0:26
    Now you're going to try playlab where you
    are given different games and you can change
  • 0:26 - 0:32
    the values of variables like speed, height,
    score, in order to change the game. You won't
  • 0:32 - 0:37
    have to change the algorithm of the game to
    change how it plays, just the variable. In
  • 0:37 - 0:42
    my work for Kindle and on X-ray for books,
    we apply variables in many different ways.
  • 0:42 - 0:48
    One way that you can use a variable is to
    store page numbers of a book. A user can increase
  • 0:48 - 0:53
    and decrease the size of the font on a page.
    Based on the font size, the number of pages
  • 0:53 - 0:58
    in the book can change. We can adjust it by
    storing the number of pages in the variable.
Title:
Variables in Play Lab
Description:

more » « less
Video Language:
English
Duration:
0:59

English subtitles

Revisions