Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- import background
- import time
- pycat = turtle.Turtle()
- pycat.hideturtle()
- screen = turtle.Screen()
- image = ()
- image = ["pycat_small_left.png","pycat_2_left_small.png"]
- screen.addshape(image[0])
- pycat.shape(image[0])
- pycat.penup()
- pycat.goto(-150,0)
- pycat.showturtle()
- pycat_2 = turtle.Turtle()
- pycat_2.hideturtle()
- screen.addshape(image[1])
- pycat_2.shape(image[1])
- pycat_2.penup()
- pycat_2.goto(-140,0)
- pycat_2.hideturtle()
- # KIRJOITA TÄMÄN RIVIN ALAPUOLELLE OMA KOODISI
- while True:
- pycat_2.showturtle()
- pycat.hideturtle()
- pycat.forward(20)
- time.sleep(0.5)
- pycat.showturtle()
- pycat_2.hideturtle()
- pycat_2.forward(20)
- time.sleep(0.5)
Advertisement
Add Comment
Please, Sign In to add comment