Guest User

Code

a guest
Jul 31st, 2020
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os
  2. import turtle
  3.  
  4. wn = turtle.Screen()
  5. wn.bgcolor("black")
  6. wn.title("Space Invaders")
  7.  
  8. border_pen = turtle.Turtle()
  9. border_pen.speed(0)
  10. border_pen.color("white")
  11. border_pen.penup()
  12. border_pen.setposition(-300, -300)
  13. border_pen.pendown()
  14. border_pen.pensize(3)
  15. for side in range(4):
  16.     border_pen.fd(600)
  17.     border_pen.lt(90)
  18.  
  19. border_pen.hideturtle()
  20.  
  21. player = turtle.Turtle()
  22. player.color("blue")
  23. player.shape("triangle")
  24. player.penup()
  25. player.speed(0)
  26. player.setposition(0, -250)
RAW Paste Data