Commit ef84555f by BellCodeEditor

save project

parent e444e563
Showing with 4 additions and 1 deletions
...@@ -62,7 +62,7 @@ while True: ...@@ -62,7 +62,7 @@ while True:
score+=50 score+=50
else: else:
position.pop(0) position.pop(0)
score-=5 score-=1
position.append((x, y)) position.append((x, y))
...@@ -82,3 +82,6 @@ while True: ...@@ -82,3 +82,6 @@ while True:
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPSCLOCK.tick(3) FPSCLOCK.tick(3)
if x<0 or x>630 or y<0 or y>450:
exit()
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