STEP 3:舞台是一个坐标平面。使用 (x, y) 坐标让三角形到达标记为目标的点!

  • 更改命令中的0 , 0spritego_to( 0 , 0 )所以三角形的红色顶点落在球门上。
  • 运行您的程序以查看您的更改。

请记住,x 坐标是第一个数字,y 坐标是第二个数字。

  • 当您获得匹配(和绿色消息)时,请单击提交接下来继续。

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

# stage.create_grid_overlay(line_separation, "line_color") stage.create_grid_overlay(50, "grey") sprite = codesters.Sprite("triangle") sprite.go_to(0,0)
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)