第7步:玩家将用向左键和向右键控制汽车。

  • 当按下向左键时,使用 Left Key 事件使 car 向左移动 25 个像素。
  • 当按下向右键时,使用 Right Key 事件使 car 向右移动 25 个像素。

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)