Activity: Move the Triangle 1
I'M FINISHED WITH HOUR OF CODE!

STEP 3: The stage is a coordinate plane. Use use (x, y) coordinates to have the triangle go to the point labeled goal!

  • Change the 0, 0 in the command: sprite.go_to(0,0) so the triangle's red vertex lands on the goal.
  • Run your program to see your changes.

Remember, the x-coordinate is the first number, and the y-coordinate is the second number.

  • When you get a match (and a green message) click Submit and Next to go on.

# stage.create_grid_overlay(line_separation, "line_color") stage.create_grid_overlay(50, "grey") sprite = codesters.Sprite("triangle") sprite.go_to(0,0)
Support