第17 步:我们现在要做的就是将我们的精灵值的分数加到分数上!

  • 在,将Get Image Name拖到click( sprite )函数中。
  • 将=符号左侧的变量从my_var为image 。
  • 这是我们点击的精灵的图像名称。我们将在字典中使用它作为下一个活动的键。

    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)