Commit 4b5b24ae by BellCodeEditor

save project

parent 0a8e4ddc
Showing with 7 additions and 2 deletions
...@@ -65,4 +65,9 @@ while True: ...@@ -65,4 +65,9 @@ while True:
screen.blit(food, (360, 300)) screen.blit(food, (360, 300))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPSCLOCK.tick(3) FPSCLOCK.tick(3)
\ No newline at end of file if x == apple_x and y == apple_y
apple_x = random.randint(0, 660)
apple_y = random.randint(0, 480)
position.pop(0)
\ 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