Commit fbd71a08 by BellCodeEditor

save project

parent 15fd01b9
Showing with 3 additions and 4 deletions
......@@ -40,9 +40,8 @@ while True:
b.pop(0)
screen.blit(background, (0, 0))
# 将贪吃蛇画上去
screen.blit(ri, (x,y))
for i in range(len(b)-1):
screen.blit(ri, (b[i]))
screen.blit(d, (b[i]))
# 将贪吃蛇的身体画上去
if c=="left":
x-=30
......@@ -56,4 +55,4 @@ while True:
screen.blit(food, (360, 300))
# 刷新画面
pygame.display.update()
a.tick(2)
\ No newline at end of file
a.tick(10)
\ No newline at end of file
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