我们需要控制鱼,让其可以左右移动来捕食。我们将使用事件来添加用户控件。

  • 将 fish_food 的直径更改为 10。
  • 将鱼食的颜色改为 "sienna"。
  • 点击 并拖出 Left Key 和 Right Key。
  • 将 Left Key 和 Right Key 中的数字更改为 30。

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)