Commit 887e7280 by BellCodeEditor

save project

parent f7ba27dc
Showing with 2 additions and 2 deletions
......@@ -66,8 +66,8 @@ while True:
# 将果实画上去
screen.blit(food, (a_x, a_y))
if a_x==x and a_y==y:
a_x=random.randint(30,660)
a_y=random.randint(0,480)
a_x=30*random.randint(0,21)
a_y=30*random.randint(0,15)
# 刷新画面
pygame.display.update()
......
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