我们需要一个球和一个挡板来玩这个游戏。

  • 将一个 Rectangle 拖动到程序底部的所有循环外部。
  • 将矩形命名为 paddle。将 y 坐标更改为 -210,宽度为 60 ,高度为 10。
  • 拖入一个 Circle 并将其命名为 ball。
  • 将直径更改为 15,并将颜色设置为 "red"。

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)