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

45 lines
1.1 KiB
Markdown

# meteorite quiz
create the game meteorite.
## Name
## Directions
Use this activity document to guide your work in the [meteorite tutorial](/lessons/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".)
<br/>
## 2. Write the code that plots the initial position of the ship. (Hint: look inside the function "initialize game".)
<br/>
## 3. Write the code that will detect if a meteorite 1 collided with the ship. (Hint: look inside the function "move meteorite 1".
<br/>
## 4. Write the code that increase the difficulty by making the game run faster.
<br/>
## 5. Write the code that moves the ship left.
<br/>
## 6. Write the code that moves the ship right.
<br/>
## 7. Write the function that checks if moving the ship resulted in a collision with meteorite 1.
<br/>
## 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".)
<br/>