pxt-calliope/olddocs/js/lessons/meteorite/quiz.md
2016-04-15 14:37:25 -07:00

1.1 KiB

meteorite quiz

create the game meteorite.

Name

Directions

Use this activity document to guide your work in the meteorite tutorial

Answer the questions while completing the tutorial. Pay attention to the dialogues!

1. Write the code that sets up the position variables of meteorite 1. (Hint: look inside the function "initialize game".)


2. Write the code that plots the initial position of the ship. (Hint: look inside the function "initialize game".)


3. Write the code that will detect if a meteorite 1 collided with the ship. (Hint: look inside the function "move meteorite 1".


4. Write the code that increase the difficulty by making the game run faster.


5. Write the code that moves the ship left.


6. Write the code that moves the ship right.


7. Write the function that checks if moving the ship resulted in a collision with meteorite 1.


8. Write the code that flashes all the LEDs thee times to create the effect of a crash. (Hint: look at the function "game over".)