Commit 7d63969f by BellCodeEditor

save project

parent aebfc138
Showing with 4 additions and 4 deletions
......@@ -66,8 +66,8 @@ while True:
# 将果实画上去
screen.blit(food, (ax,ay))
if ax==x and ay==y:
ax=random(0,630)
ay=random(0,450)
ax=random.randint(0,630)
ay=random.randint(0,450)
# 刷新画面
pygame.display.update()
FPSCLOCK.tick(3)
\ No newline at end of file
FPSCLOCK.tick(5)
\ 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