2016-03-26 00:47:20 +01:00
|
|
|
# meteorite quiz
|
|
|
|
|
2016-04-02 01:22:47 +02:00
|
|
|
create the game meteorite.
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
## Name
|
|
|
|
|
|
|
|
## Directions
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
Use this activity document to guide your work in the [meteorite tutorial](/lessons/meteorite/tutorial)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
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/>
|
|
|
|
|