Player2 将由向上键、向左键和向右键控制。

  • 使用 Up Key ,当按下向上键时,使 player2 .move_up() 30 像素。
  • 使用 Left Key ,当按下向左键时,使 player2 .move_left() 30 像素。
  • 使用 Right Key ,当按下向右键时,使 player2 .move_right() 30 像素。

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)