PASO 9: Un balón real de baloncesto caería al suelo y luego rebotaría.

  • Clic para abrir esa sección en el kit de herramientas.
  • Arrastra Set Gravity dentro de tu programa.
  • Arrastra Set Bounce dentro de tu programa.
  • Clic Correr para ver tu trabajo. Clic Enviar y Siguiente para continuar.

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

stage.set_background("halfcourt") sprite = codesters.Sprite("player4") sprite.go_to(215, -175) net = codesters.Sprite("basketballnet") net.go_to(215, 175) ball = codesters.Sprite("basketball") x = random.randint(-100, 150) ball.go_to(x, -25)
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)