PASO 4: ¡Te enfrentarás a la "computadora" que usará al mago malvado! Configuremos una "barra de salud" para la computer.

  • Arrastre otra Integer Variable . Cambie su nombre a computer_hp y establezca su valor en 100
  • Arrastre en otra Variable Display . Cambie su nombre de my_display a computer_display .
  • Cambie la variable my_var a computer_hp y coloque la pantalla en ( -150 , 200 ).
  • En la próxima actividad, comenzaremos a usar las funciones y las vincularemos, ¡comenzando con cast_spell() !

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)