STEP 3: This is a timed game - so let's set up and show a countdown!

Arguments are the information in parentheses after a command. Commands need that information to run!

  • From drag out an Integer Variable. Change my_var to time and the value from 25 to 60.
  • Drag out Variable Display. Change the display name from my_display to time_display.
  • Change .Display()'s arguments to time, 210, -210. Now we've set up our onstage countdown timer!

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

stage.set_background("moon") sprite = codesters.Sprite("hedgehog", 0, -210) score = 0 #my_display = codesters.Display(my_var, x, y) score_display = codesters.Display(score, -210, -210)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)