• Adentro del collision event, utiliza un if statement para probar si lives es menor que o igual a <= 0.
  • Usa Text in Color y muestra un mensaje en "red" en (0,0) que dice "GAME OVER!" en if statement.
  • Añade un comando Say al if statement.
  • Cambia el string en .say() a "Your final score was ___". Utiliza + y str() para reemplazar el espacio en blanco con el valor de score.

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)