第17步:现在房门看起来是合适的大小和形状,但我们应该让它变得可移动。

  • 点击 Actions ,拖出 Go To 指令。
  • .go_to() 指令前的名称更改为 door
  • 你可以使用形状的变量名称在控制台上为其分配一定的动作。
  • 这次,我们让这扇 移动到 Go To 特定位置。


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)