2.0 KiB
2.0 KiB
line of fire quiz
create a game that relies on precise instincts and timing reflexes.
Name
Directions
Use this activity document to guide your work in the line of fire tutorial
Answer the questions while completing the tutorial. Pay attention to the dialogues!
1. Write the names of the two Global Variable used to store the mode of the game. Which of these variables is set to true when we are displaying the score?
2. Write the name of the Global Variable that represents the velocity and assign it to its initial value. Next, write the name of the Global Variable that represents the position of the dot and assign it to its initial value.
3. Write the name of the two variables that keep track of the score, and assign them to their initial values.
4. Write the For Loop that will plot the 'line of fire'.
5. If the dot is running, write the 'nested If statements' that will see when to change the direction by flipping the sign of the velocity. This occurs if the dot is on the edge of the board.
Questions 6-8 concern with moving the dot.