STEP 5: Let's add our hoop!

Each sprite needs its own name. The sprite's name is the orange word before the equals sign.

  • Go to the section of the toolkit and drag Basketball Net to the bottom of your program.
  • Change the name before the equals sign from sprite to net.

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

stage.set_background("halfcourt") sprite = codesters.Sprite("player1") sprite.go_to(-175, -150)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)