现在你已经复习了一些基本的变换,你有一个任务要完成。

  • 你的第一个任务是使用平移将精灵移动到目标三角形的位置。
  • 你需要使用2个平移指令:一个 Translate_x 和一个 Translate_y
  • 更改指令中的数字,直到将起始三角形移动到目标三角形上。

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

sprite = codesters.Sprite("triangle") sprite.go_to(-200, -150) sprite.set_speed(1) sprite.say("Start")
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)