Commit 5f52e654 by BellCodeEditor

save project

parent 007cb90b
Showing with 3 additions and 0 deletions
......@@ -71,6 +71,8 @@ while True:
screen.blit(text,(540,10))
# 将果实画上去
screen.blit(food, (apple_x, apple_y))
if x<0 or x>630 or y<0 or y>450:
exit()
# 刷新画面
pygame.display.update()
Fpsclock.tick(3)
\ 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