Commit 02d0243d by BellCodeEditor

save project

parent f04efe89
Showing with 3 additions and 3 deletions
...@@ -67,7 +67,7 @@ while True: ...@@ -67,7 +67,7 @@ while True:
else: else:
position.pop(0) position.pop(0)
if x < 0 or x > 630 or y < 0 or y > 340: if x < 0 or x > 630 or y < 0 or y > 450:
exit() exit()
position.append((x, y)) position.append((x, y))
...@@ -88,4 +88,4 @@ while True: ...@@ -88,4 +88,4 @@ while True:
screen.blit(food, (apple_x, apple_y)) screen.blit(food, (apple_x, apple_y))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPSCLOCK.tick(3) FPSCLOCK.tick(4)
\ No newline at end of file \ 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