PASO 14: ¡La pelota debe cambiar de dirección si golpea un ladrillo!
- En GRÁFICOS de agregue Set x Speed dentro de la segunda declaración if.
- Cambie el argumento en .set_x_speed() a - ball_x_speed .
- Agregue Set y Speed dentro del segundo bloque if. ¡Editemos el argumento para agregar un poco de aleatoriedad al movimiento!
- Borra los 5 y escribe random .randint(- 5 , 5 ) . ¡Esto establece la velocidad y en un número entero aleatorio entre -5 y 5!
To navigate the page using the TAB key, first press ESC to exit the code editor.