PASO 6: ¡También necesitamos las coordenadas x, y para nuestra red!

  • Haga clic en la pestaña LÓGICA, luego haga clic en .
  • Arrastre Integer Variable hasta la parte inferior de su código.
  • Cambie el nombre a la izquierda del signo = de my_var a netx .
  • Cambie el número entero después del signo igual de 25 a 90 .

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)
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)