Activity: Example
I'M FINISHED WITH HOUR OF CODE!
img

Here's an example of the dance routine that you will make today!

  • Click Run to watch the example program.
  • Click Submit and Next to start building your own dance routine!

stage.set_background("subway") sprite = codesters.Sprite("person10", 0, -75) sprite.set_speed(4) sprite.flip_up_down() sprite.move_left(200) sprite.move_right(150) sprite.flip_up_down() sprite.wait(2) sprite.move_up(100) sprite.turn_right(360) sprite.move_down(100) sprite.wait(2) sprite.flip_right_left() stage.wait(1) sprite.flip_right_left() stage.wait(1) sprite.flip_right_left() stage.wait(1) sprite.flip_right_left() sprite.move_right(200) sprite.flip_up_down() sprite.move_left(200) sprite.flip_up_down() sprite.wait(2) sprite.turn_right(360) sprite.wait(2) sprite.say("I love dancing!")
Support