第6步:让我们创造出在控制台上来回跳跃的UFO。

  • 点击 ,将 Set Bounce 拖动到程序底端的循环外部。
  • .set_bounce() 指令中的数字更改为 1
  • 点击 ,将 Integer Variable 拖动到程序底部。
  • 将变量名称更改为 y。将值更改为 -150

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)