Commit e11c20c0 by BellCodeEditor

auto save

parent b288db26
Showing with 2 additions and 1 deletions
......@@ -92,7 +92,7 @@ while True:
bg_x = 0
screen.blit(background, (bg_x, 0)) # 远景
road_x -= 8
road_x -= 1000
if road_x<=-1000:
road_x = 0
screen.blit(road, (road_x, 500)) # 道路
......@@ -117,6 +117,7 @@ while True:
gamestate = False
scoreSurf = basic_font.render("分数:"+str(score),True,(255,0,0))
screen.blit(scoreSurf,(850,20))
print(score)
# 刷新画面
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