Commit 39b260f5 by BellCodeEditor

save project

parent cee67097
Showing with 9 additions and 3 deletions
...@@ -93,7 +93,7 @@ while True: ...@@ -93,7 +93,7 @@ while True:
# 将背景图画上去 # 将背景图画上去
bg_x -= 1 bg_x -= 1
if bg_x<=-1: if bg_x<=-1:
bg_x = 0 bg_x = 0
screen.blit(background, (bg_x, 0)) # 远景 screen.blit(background, (bg_x, 0)) # 远景
...@@ -130,9 +130,14 @@ while True: ...@@ -130,9 +130,14 @@ while True:
scoreSurf = basic_font.render("分数:"+str(score),True,(255,255,255)) scoreSurf = basic_font.render("分数":"+str(score),True,(255,255,255))
screen.blit(scoreSurf,(850,20)) screen.blit(scoreSurf,(850,20))
scoreSurf = basic_font.render("1:"+str(one),True,(255,255,255))
screen.blit(scoreSurf,(880,50))
scoreSurf = basic_font.render("2:"+str(two),True,(255,255,255))
screen.blit(scoreSurf,(880,80))
scoreSurf = basic_font.render("3:"+str(thr),True,(255,255,255))
screen.blit(scoreSurf,(880,110))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(60) FPS.tick(60)
\ 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