Commit 7a644138 by BellCodeEditor

save project

parent e7171ae8
Showing with 5 additions and 3 deletions
......@@ -59,6 +59,7 @@ while True:
sb_y=random.randint(1,16)
SB_x=sb_x*30-30
SB1_y=sb_y*30-30
score=score+10
else:
position.pop(0)
position.append((x, y))
......@@ -77,6 +78,7 @@ while True:
info="Score: "+str(score)
text = my_font.render(info,True,(0,0,0))
screen.blit(text,(0,0))
# 刷新画面
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
FPSCLOCK.tick(10)
\ 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