第 2 步我们将从左侧构建我们的机器人,并使用显示器来跟踪每组腿的 x 坐标。

  • 首先将legs_x的值从25更改为-200 。这会将第一条腿一直放在左边。
  • ,将Variable Display拖到程序底部。
  • 在变量显示命令.Display()的括号内,将legs_x my_var
  • 点击运行然后点击前提交接下来继续前进!

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)