Commit 4cdb2381 by BellCodeEditor

save project

parent bea917df
Showing with 3 additions and 2 deletions
......@@ -67,8 +67,8 @@ while True:
# 将果实画上去
screen.blit(food, (apple_x, apple_y))
if apple_x == x and apple_y == y:
apple_x = random.randint(0,22) * 30
apple_y = random.randint(0,16) * 30
apple_x = random.randint(0,21) * 30
apple_y = random.randint(0,15) * 30
# 刷新画面
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