Commit fc92b3d5 by BellCodeEditor

save project

parent c222b7f4
Showing with 5 additions and 3 deletions
......@@ -51,12 +51,14 @@ while True:
else:
y+=30
if x==a_x and y==a_y:
a=random.randint(0,22)
b=random.randint(0,12)
a=random.randint(0,21)
b=random.randint(0,11)
a_x=a*30
a_y=b*30
zuo.append((x,y))
else:
zuo.pop(0)
zuo.append((x,y))
screen.blit(background, (0, 0))
# 将贪吃蛇画上去
screen.blit(xiang,zuo[-1] )
......
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