Un balón verdadero deberá caer al piso y luego rebotar.

  • Haz clic en para abrir esa sección en el kit de herramientas.
  • Arrastra Set Gravity en tu programa.
  • Arrastra Set Bounce en tu programa.
  • Haz clic en Correr para ver tu trabajo. Haz clic en Enviar y en 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)