EJERCICIO 1: Este código es ineficiente. ¡Escribimos los mismos comandos NUEVE veces! ¡Refactoricemos con un bloque personalizado!

  • Haga clic en ASUNTO y luego . Haga clic en Crear bloque y llámelo Move and Turn .
  • Copie las líneas 8 y 9 del editor de código en su bloque personalizado.
  • Debería haber un sprite . línea move_forward( 250 ) y una línea sprite .turn_left ( 160 ) . ¡Clic en Guardar!
  • Hacer clic correr , enviar , y Siguiente para continuar.

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

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)