第5步:让我们使用相同类型的循环来设置四条道路。
- 创建一个 Integer Variable 在名为 y 的循环外部,它的值为 -150。
- 拖入另一个 Loop with Range 。将范围设置为 4。
- 在循环内部,添加一个名为 road 的 Rectangle。将 y 坐标替换为 y。
- 赋予它 500 个像素的宽度和 60 个像素的高度。将颜色更改为 "gray"。
To navigate the page using the TAB key, first press ESC to exit the code editor.