Commit b81dd24e by BellCodeEditor

save project

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