PASO 7: ¡Nuestra red también puede aparecer cerca del suelo o en el cielo!

  • Haga clic en LÓGICA, luego .
  • Arrastre una herramienta de Random Integer hasta la parte inferior de su código.
  • Cambie el nombre a la izquierda del signo = de my_var a nety .
  • Cambie los números entre paréntesis de 1, 10 a -100, 100.

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

stage.set_axis(100) stage.create_grid_overlay(10, "grey") stage.set_background("soccerfield") ballx = -80 bally = random.randint(-100,100) # sprite = codesters.Sprite("image", x, y) ball = codesters.Sprite("soccerball", ballx, bally) netx = 90
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)