Commit dcff4c51 by BellCodeEditor

save project

parent a4cd00a3
Showing with 10 additions and 4 deletions
......@@ -45,7 +45,7 @@ hero = [pygame.image.load('hero1.png'),
score_audio = pygame.mixer.Sound('score.wav')
#basic_font = pygame.font.Font('STKAITI.TTF', 18) # 字体
#导入字体
font=pygame.font.Font(None,40)
font=pygame.font.Font(None,30)
index = 0
y = 400
......@@ -116,7 +116,13 @@ while True:
screen.blit(wukong.image, (150, y)) # 悟空
myscore=font.render('score:'+str(score),True,(255,255,255))
screen.blit(myscore,(880,560))
frist=font.render('frist:'+str(one),True,(255,255,255))
second=font.render('second:'+str(two),True,(255,255,255))
third=font.render('third:'+str(three),True,(255,255,255))
screen.blit(myscore,(880,10))
screen.blit(frist,(880,40))
screen.blit(second,(880,70))
screen.blit(third,(880,100))
time += 1
if time >= 60: # 创建障碍物精灵
time = 0
......
{"第1名": 18, "第2名": 5, "第3名": 2}
\ No newline at end of file
{"第1名": 34, "第2名": 20, "第3名": 4}
\ 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