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

1.3 KiB

runaway pacman quiz

create a game that is inspired by the classic arcade game Pac Man.

Name

Directions

Use this activity document to guide your work in the runaway pacman tutorial

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

1. Write the the method name created that will set up the game board.


2. Write the the method name created that will draw the player and the monster(s)


3. Write the code that keeps track of how long a player has been playing. (Don't include any if statements.)


4. Write the code that will reset the time and continue playing if we have been eaten.


5. Write 'If statement' that will determine if the player has been playing for more than 5 seconds.


6. Suspend the game if we are advancing to the next level. (Hint: this requires setting a variable to true.)


7. Write the code to add a monster. (Hint: look in the function "add monster".)


8. Write the code that will restart the time to 0 after you begin the next level.


9. Write the code that makes the player go either North or East when button 'A' is pressed.




10. Write the code that makes the player go either South or West when button 'B' is pressed.