Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / pygame_lesson3_diy1

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • pygame_lesson3_diy1
  • snake.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    auto save · 55ee3c12
    BellCodeEditor committed 2 years ago
    55ee3c12
snake.py 665 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
import turtle
turtle.setup(1500,800,50,50)
pen1 = turtle.Pen()
pen1.speed(5)

pen1.penup()
pen1.goto(-550,0)
pen1.pendown()
pen1.pensize(20)
pen1.pencolor("blue")
pen1.circle(150)


pen1.penup()
pen1.goto(-210,0)
pen1.pendown()
pen1.pensize(20)
pen1.pencolor("red")
pen1.circle(150)

pen1.penup()
pen1.goto(130,0)
pen1.pendown()
pen1.pensize(20)
pen1.pencolor("black")
pen1.circle(150)

pen1.penup()
pen1.goto(-400,-150)
pen1.pendown()
pen1.pensize(20)
pen1.pencolor("green")
pen1.circle(150)

pen1.penup()
pen1.goto(-20,-150)
pen1.pendown()
pen1.pensize(20)
pen1.pencolor("yellow")
pen1.circle(150)


turtle.done()