PASO 2: configuremos algunas variables para nuestro juego. ¡Necesitamos crearlos antes de poder usarlos!

  • Vaya a LÓGICA y para arrastrar Empty List . Cambie su nombre de my_list a image_labels .
  • Cambie image_labels para que sea igual a esta lista: [ "garbage" , "plasticbag" , "steelcan" , "sodacan" ]
  • Desde , arrastre Integer Variable . Cambie su nombre a timer y cambie su valor a 1 .

Usaremos estas variables más adelante en nuestro juego, incluida la elección aleatoria de image_labels para hacer sprites.

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)