Level 5: Learning Quiz - IncrediCoders/Python1 GitHub Wiki

Intelli_Avatar_7

Intelli-Scents added this page on March 14, 2023


I prepared some questions to check what you learned!

Level 5 Quiz Questions

  1. What does the update() function do on Line 4?

  2. What is a function?

  3. What does the statement if key_held_down(pygame.K_LEFT): check for?

  4. On Line 15, the speed and animation for Paul is set, what is this variable called?

  5. What does the function PLAYER_ACCEL mean?

  6. What does this function: if MY.player.velocity.x > 0: on Line 41 check for?

  7. What does the statement MY.player_health -= 1 do to Paul's health?

  8. What does the function if MY.player_health == 0: check for?

  9. What does the statement MY.player.location = MY.player_start_position do to the position of the sprite?

  10. What is the statement MY.grounded set to when Paul is not touching the wall or the floor?

Answers

Ready to check the answers to these questions? You'll find them in the Level 5 solution folder.

Next Steps

Next, you can take on the two extra challenges to chase the Creeper and learn more! When you're done, you can move on to Level 6, the Boss Battle!

Take the Challenges!

  1. Challenge 1: In this challenge, you are going to write code that will help Paul Python chase the Creeper.

  2. Challenge 2: In this challenge, you are going to add more code to the simulator where Paul Python is chasing the Creeper.

  3. Bonus Challenge: In this extra challenge, you'll see how to make your own levels for Paul to run and jump (and fly) through! Practice your game design skills!

More Level 5 Resources

  • Level 5: Unplugged Activity - I wrote this page with more details than what you saw in the book. In this game,

  • Level 5: Rewards - If you completed the Creeper Chase program that we talked about, then I set up this page to act as a reward. You can see some illustrations of me and learn more about who I am! You'll also find the **WHAT **Award digital download, to show off your accomplishment!

  • Level 5: Creeper Chase: All Online Articles - Return back to the main Level 5 page, with all our online resources!

Level 6

After you're completely done with Level 5 (did you do the challenges?), then it's time to move on to Level 6! While you read through Level 6 in your book, you can check out the resources from Paul Python, as he teaches you how to build the Boss Battle program:

I hope you had fun learning about the Creeper Chase!

--

⚠️ **GitHub.com Fallback** ⚠️