球将在控制台上移动,我们将使用左右方向键控制挡板。

  • 从 中,拖出 Set x Speed 和 Set y Speed。
  • 将指令分配给 ball。并将值更改为 2。
  • 拖入 Left Key 和 Right Key 事件。
  • 将事件内部的指令分配给 paddle。

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)