第12步:让另一条路上的汽车反向通行。
- 将另一个 if or 指令拖动到函数内部(但在 if 语句外部)。
- 设置这个 if 语句来测试 rand_y 是否等于 -50 或 150。
- 将 Sprite at Position 拖动到新的 if 语句内部,并将其名称更改为 car。
- 将 car 的图像名称更改为 car_img。将 x 坐标更改为 400,将 y 坐标更改为 rand_y。
To navigate the page using the TAB key, first press ESC to exit the code editor.