让我们使用刚创建的随机数来控制区块的高度。

  • 将随机变量的名称更改为 pipe_height
  • 将形状的名称更改为 bottom_pipe
  • 将矩形的 x 坐标更改为 250。将其高度参数更改为 pipe_height

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)