STEP 3: We're going to need a few more variables for our program. Let's make those now!

  • Drag out another Integer Variable to the next line in the program.
  • Change the variable's name from my_var to level. Change its value from 25 to 0.
  • Drag out Variable Display and change the first argument from my_var to level.

level will increment for each level of the game. It will start at 0 and then increase to 1 when Level 1 begins!

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)