Level 5: Learning Quiz - IncrediCoders/Python1 GitHub Wiki
Intelli-Scents added this page on March 14, 2023
I prepared some questions to check what you learned!
-
What does the
update()
function do on Line 4? -
What is a function?
-
What does the statement
if key_held_down(pygame.K_LEFT):
check for? -
On Line 15, the speed and animation for Paul is set, what is this variable called?
-
What does the function
PLAYER_ACCEL
mean? -
What does this function:
if MY.player.velocity.x > 0:
on Line 41 check for? -
What does the statement
MY.player_health -= 1
do to Paul's health? -
What does the function
if MY.player_health == 0:
check for? -
What does the statement
MY.player.location = MY.player_start_position
do to the position of the sprite? -
What is the statement
MY.grounded
set to when Paul is not touching the wall or the floor?
Ready to check the answers to these questions? You'll find them in the Level 5 solution folder.
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!
-
Challenge 1: In this challenge, you are going to write code that will help Paul Python chase the Creeper.
-
Challenge 2: In this challenge, you are going to add more code to the simulator where Paul Python is chasing the Creeper.
-
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!
-
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!
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!
--