In this game players will earn points. Points give the player a goal and make games more engaging.

Let's use a variable to make a score. A variable is a name that stores a value.

  • Go to and drag out Integer Variable.
  • The variable's name is the word before the equals sign. Change the name to score.
  • The variable's value is the number after the equals sign. Change the value to 0.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("underwater")
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)