PASO 2: Examine cada función auxiliar y su breve explicación, luego haga clic en correr , enviar , y siguiente

  • cast_spell() : permite al player elegir un hechizo para lanzar y elige uno al azar para la computer .
  • fireball() : anima un hechizo de bola de fuego según el objeto que lanzó el hechizo.
  • rock_smash() : Anima un hechizo Rock Smash basado en qué sprite lanzó el hechizo.
  • calculate_damage() : Calcula y anima el daño aleatorio según el hechizo que se lanzó.

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)