Game Preview

Coding Adventure Fundamentals - Variable Alley r ...

  •  English    15     Public
    Programming
  •   Study   Slideshow
  • What is a variable?
    A variable is like a storage unit / a letter to which we assign a value
  •  15
  • When do you use distanceTo?
    When you don't know the number of steps
  •  15
  • Can you have more than one variable with the same letter in a game?
    no
  •  15
  • Can a variable change its value through the game?
    Yes
  •  15
  • What code do you have to write to make the value of a variable change?
    x = 5 / x= x + 3
  •  15
  • When do we use a loop?
    When there is a patter and you need to repeat the same instructions more than once.
  •  15
  • What happens when you use the - (minus)?
    The monkey moves backwards
  •  15
  • What do you use TurnTo for?
    You use turnTo to move the monkey to a position facing what you want.
  •  15
  • What can you do if you need to cross through a bridge?
    Use the bridge or a turtle
  •  15
  • What do you need to use when there is a rat?
    'say' + "" with the phrase
  •  15
  • When do you need to use the ruler?
    When you need to measure the number of steps and/or degrees to move
  •  15
  • How do you write a loop to make the monkey step 3 and jump 5 times?
    5.times --> ....step 3 ....jump
  •  15
  • Is this code ok?
  •  15
  • Is this code ok?
  •  15
  • can you solve this level?
  •  15