第7步:现在我们可以更改坐标来控制 glorp的位置。

  • .go_to() 指令中的第一个数字(x坐标)更改为100
  • .go_to() 指令中的第二个数字(y坐标)更改为 -125

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

stage.set_background("moon") sprite = codesters.Sprite("astronaut1") sprite.go_to(-125, -150) glorp = codesters.Sprite("alien1") glorp.go_to(-100, -50)
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)