STEP 8: We're in space; let's add an asteroid! Asteroids are pieces of rock and metal that orbit that orbit the sun.

  • Go to and drag Asteroid into your program.
  • Change the name of the asteroid sprite to rock.

Remember a sprite's name is the orange word before the equal sign =.

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

stage.set_background("moon") sprite = codesters.Sprite("astronaut1") sprite.go_to(-125, -150) glorp = codesters.Sprite("alien1") glorp.go_to(100, -125)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)