Commit 1d50b547 by BellCodeEditor

save project

parent 323349d2
Showing with 4 additions and 1 deletions
......@@ -68,6 +68,9 @@ while True:
else:
z.pop(0)
if x<0 or x>630 or y>450 or y<0:
exit()
# 将背景图画上去
screen.blit(background, (0, 0))
# 将贪吃蛇画上去
......@@ -82,7 +85,7 @@ while True:
test=my_font.render(info,True,(0,0,0))
screen.blit(test,(540,10))
f.tick(8)
f.tick(6)
# 刷新画面
pygame.display.update()
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