第 6 步:让我们的狐狸进一步向下移动,直到它在地面上。

像素是舞台上的测量单位。

  • 让我们让精灵向下移动150像素。
  • .move_down( 50 )中,命令将数字从50更改为150 。不要在数字周围加上引号。
  • 点击跑去看狐狸向下移动更远。然后点击提交接下来继续。

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("winter") sprite = codesters.Sprite("fox") sprite.move_down(50)
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)