STEP 10: Now let's tell the player they won if they met our win condition.

  • Change the name of the text to win_text.
  • Change the string in the text to "YOU WIN!"
  • Position the text at the center of the stage, (0, 0) and change the color of the text to "green".

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
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)