Commit 02d0243d by BellCodeEditor

save project

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