Guest User

Space Invaders Week 1

a guest
Aug 5th, 2020
64
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import turtle
  2.  
  3.  
  4. wn = turtle.Screen()
  5. wn.bgcolor("black")
  6. wn.title("Space Invaders")
  7.  
  8. #border
  9. border_pen = turtle.Turtle()
  10. border_pen.speed(0)
  11. border_pen.color("white")
  12. border_pen.penup()
  13. border_pen.setposition(-300,-300)
  14. border_pen.pendown()
  15. border_pen(3)
  16. border_pen
  17. for side in range(4):
  18.     border_pen.fd(600)
  19.     border_pen.lt(90)
  20. border_pen.hideturtle()
  21.  
  22.  
  23. player = turtle.Turtle()
  24. player.color("blue")
  25. player.shape("triangle")
  26. player.penup()
  27. player.speed(0)
  28. player.setposition(0, -250)
  29. player.setheading(90)
  30.  
  31.  
  32.  
  33. delay = input("Press enter to finish.")
RAW Paste Data