Commit be48dad1 by BellCodeEditor

save project

parent 17631911
Showing with 23 additions and 1 deletions
import turtle
pen=turtle.Pen()
pen1=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("你好\n陌生人\n欢迎来观看我的视频\n记得一键三连\n拜了个拜",font=("Times",20,"normal"))
pen1.pensize(10)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.hideturtle()
pen.hideturtle()
turtle.done()
\ No newline at end of file
......@@ -14,6 +14,7 @@ right = pygame.image.load('right.png')
food = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
x,y=240,120
position=[(180,90),(180,120),(210,120),(240,120)]
#初始化蛇头位置
while True:
......@@ -31,7 +32,6 @@ while True:
# 将贪吃蛇的身体画上去
for i in range(len(position)-1):
screen.blit(body,position[i])
#screen.blit(body, (210, 120))
#screen.blit(body, (180, 120))
#screen.blit(body, (180, 90))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment