EXTEND: Let's add some more difficulty to this game! The game should get more difficult on each new level.

  • Change the value in the for loop range() from (10) to (10 + level). This will add more sprites each level!
  • Create a variable at the top of your program named speed with a value of -3.
  • Replace the argument -5 in sprite.set_y_speed(-5) with the variable speed.
  • At the bottom of the while loop, enter this code: speed·-=·0.5 This will make the sprites drop faster each level!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)