Commit 2ab2b0d2 by BellCodeEditor

save project

parent b2a476c7
Showing with 7 additions and 2 deletions
...@@ -29,4 +29,10 @@ while True: ...@@ -29,4 +29,10 @@ while True:
# 将果实画上去 # 将果实画上去
screen.blit(food, (360, 300)) screen.blit(food, (360, 300))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
\ No newline at end of file if x == apple_x and y == apple_y:
apple_x = random.randint(0,660)
apple_y = randow.randint(0,480)
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