Commit 2ab2b0d2 by BellCodeEditor

save project

parent b2a476c7
Showing with 6 additions and 0 deletions
......@@ -30,3 +30,9 @@ while True:
screen.blit(food, (360, 300))
# 刷新画面
pygame.display.update()
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