Commit 9d414797 by BellCodeEditor

save project

parent 0870b5a5
Showing with 4 additions and 3 deletions
File added
......@@ -49,7 +49,7 @@ road_x = 0
bg_x = 0
time = 0
gamestate = True
#basic_font=pygame.font.Font('',18)
basic_font=pygame.font.Font('STKAITI.TTF',18)
score=0
old_score=score
speed = 8+ score//3
......@@ -129,8 +129,8 @@ while True:
old_score=score
#scoreSurf=basic_font.render('分数'+str(score),True,(255,255,255))
#screen.blit(scoreSurf,(880,20))
scoreSurf=basic_font.render('分数'+str(score),True,(255,255,255))
screen.blit(scoreSurf,(880,20))
# 刷新画面
pygame.display.update()
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