第16步:当你的 score 达到 10,你将获得胜利!

  • 在点击事件内部,使用 if 以测试 score 的值是否为 10
  • 点击 ,将 Text in Color 拖动到新的 if 语句内部。
  • 更改文本参数(字符串、x坐标、y坐标和颜色)来设计自己的胜利消息。
  • 点击 ,使用 Hide Spritefish 从控制台上隐藏。

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
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)